1
Vote

Get-RegString problem

description

There is a message executing this PS script:

Get-RegString -ComputerName PC-WIN81 -Key "Registry::HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Value "ProxyServer"

The result is:
Exception calling "OpenRemoteBaseKey" with "2" argument(s): "The network path was not found.

May be this is not the right way to execute?

Thanks for your help.

Alex O.

comments

Shay wrote Oct 1, 2015 at 8:43 AM

Can you ping the PC-WIN81, is it up and running?
Also, the reg key path should contain just the relative path of the hive:

"Software\Microsoft\Windows\CurrentVersion\Internet Settings"

And you specify the hive via the -Hive parameter (default value is LocalMachine). Press the TAB key to get the argument completion.