Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Mass Proxy Exceptions Query

$
0
0

Basically what I'm trying to do is run a script across all PCs in one subnet to find what Exceptions they have on their Proxy connection,

It goes out to an external proxy for filtering & security

this is because we want to move to a Group policy set the proxy and proxy Exceptions list,

I'd like to combine it into one file i can run over Powershell or something (I do have PSEXEC on my computer)

I also want input all results into a CSV or similar

any help would be much appreciated, this is what i have so far

cscript exceptionlist.vbs>output.txt
Const HKEY_CURRENT_USER = &H80000001
Const HKEY_LOCAL_MACHINE = &H80000002

strComputer = "."
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
    strComputer & "\root\default:StdRegProv")
strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Internet Settings"
strValueName = "ProxyOverride"
oReg.GetStringValue HKEY_CURRENT_USER,strKeyPath,strValueName,strValue
Wscript.Echo "Current Exceptions List: " & strValue


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>