Retrieved Property for IE Proxy Configuration

(imported topic written by Efairrell91)

We are trying to write a retrieved property for our Windows boxes that pull in the Proxy Configuration settings. Here is what we currently have:

if (name of operating system as lowercase starts with “win”) then if (exists key “HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings” whose (value “ProxyEnable” of it as integer = 1) of registry) then “Manual Proxy Enabled” else if (exists key “HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings” whose (exists value “AutoConfigURL” of it) of registry) then "Automatic Configuration Script - " & (value “AutoConfigURL” of key “HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings” of registry as string) else “Automatically Detect” else “Non-Windows Install”

We’re getting a lot of “Automatically Detect”, so most of them are falling through the logic. Any ideas on a better way to get this?

(imported comment written by BenKus)

Since the agent is running as the SYSTEM account, this expression only retrieves proxy info for the SYSTEM user… Did you want to instead get the data for all the logged on users… OR all users who have every logged onto the computer?

What version of the agent are you using?

Ben

(imported comment written by Efairrell91)

Information for all users who’ve ever logged on would be great, but we’d be happy with just the current user. We’re fairly certain we could fix any issues with attrition at that point.

We’re currently running the 7.0.9.164 Besclient.

(imported comment written by BenKus)

Hey Efairrell,

You can use the method described here:

http://forum.bigfix.com/viewtopic.php?id=1909

It will use the “logged on user” inspector and will look something like:

if (name of operating system as lowercase starts with “win”) then if (exists key “SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings” whose (value “ProxyEnable” of it as integer = 1) of current user keys (logged on users) of registry) then “Manual Proxy Enabled” else if (exists key “SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings” whose (exists value “AutoConfigURL” of it) of current user keys (logged on users) of registry) then "Automatic Configuration Script - " & (value “AutoConfigURL” of key “HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings” of current user keys (logged on users) of registry as string) else “Automatically Detect” else “Non-Windows Install”

I haven’t tested this… you will need to run the RelevanceDebugger.exe as the SYSTEM account (see http://forum.bigfix.com/viewtopic.php?id=1098 for methods of doing this) if you want to test…

Ben