Skip to main content
All CollectionsPolicies and Agent ConfigurationsGeneral
How to configure PowerShell User Impersonation
How to configure PowerShell User Impersonation
A
Written by Aiden Morris
Updated over 8 months ago

Introduction


This guide provides instructions on how to set up PowerShell User Impersonation to run scripts under a custom user account. Normally, Pulseway executes scripts as the system user, but with these steps, you can configure scripts to run as a specific user instead.

Steps to enable on a single machine:

Open the Pulseway Manager>> Settings>> Runtime>> Enable PowerShell User Impersonation and enter the details.


If the system is part of a workgroup, leave the domain field blank and click apply.


To enable PowerShell User Impersonation on multiple machines:

First, enable it on one of the monitored systems as shown in the above screenshot, then grab the below registry values from the same machine.

PowerShellUserImpersonation
PowerShellUserImpersonationDomain
PowerShellUserImpersonationPassword
PowerShellUserImpersonationPasswordCtrl
PowerShellUserImpersonationUsername

Then, run those registry values in the script like below via the Pulseway Automation task.

Set-ItemProperty -Path "HKLM:\Software\MMSOFT Design\PC Monitor" -Name "PowerShellUserImpersonation" -Value "value here"

Set-ItemProperty -Path "HKLM:\Software\MMSOFT Design\PC Monitor" -Name "PowerShellUserImpersonationDomain" -Value "value here"

Set-ItemProperty -Path "HKLM:\Software\MMSOFT Design\PC Monitor" -Name "PowerShellUserImpersonationPassword" -Value "value here"

Set-ItemProperty -Path "HKLM:\Software\MMSOFT Design\PC Monitor" -Name "PowerShellUserImpersonationPasswordCtrl" -Value "value here"

Set-ItemProperty -Path "HKLM:\Software\MMSOFT Design\PC Monitor" -Name "PowerShellUserImpersonationUsername" -Value "value here"


For any issues, kindly reach out to support@pulseway.com with the screenshot.

Did this answer your question?