Jump to content
Philip Landreth

reg query HKEY_CURRENT_USER\Network /s

Recommended Posts

So this simple script works on any computer. reg query HKEY_CURRENT_USER\Network /s 

I am testing out Pulseway right now and trying to see what its limits are for scripting. It seems Pulsway executes Batches and Powershell as a system account and not the local logged in user. I can understand batch files to add mapped drives not working but this query should not be affected by that same issue.

It shows me all the mapped drives for the logged in user. What I do not understand is why Running this in Pulseway it returns this;

  • ERROR: The system was unable to find the specified registry key or value.
  • 0
    Exit Code

Share this post

Link to post
Share on other sites

Hi Philip,

Have you tried to configure the Powershell impersonation?



If you want to execute the PS script as the system, then you will need to disable this configuration from the code by setting the value for this registry key to 0:

HKEY_LOCAL_MACHINE\SOFTWARE\MMSOFT Design\PC Monitor\PowerShellUserImpersonation

I hope this helps.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now