1

I am trying to pull this information with the following below powershell script but it is only fetching the information for my profile and not all the users that have logged in to the server. Am I looking into the wrong place? Thank you for your help and guidance.

$keyname = "Software\Microsoft\Windows\CurrentVersion\Internet Settings"

$reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine',$server) 
$key = $reg.OpenSubkey($keyname) 
$ProxyStatus = $key.GetValue('ProxyEnable') 
$proxyURL = $key.GetValue('AutoConfigURL')
0

The proxy configuration can also be set in HKCU instead of HKLM.

You can either lookup the values for each SID under HKU or include the script as part of the user logon process.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.