Proxy Server Analysis

I have created an analysis that is supposed to return the Proxy Settings of the PCs. The PCs have joined a Domain.

I create New Analysis, go to Properties->add Property and set the following 2 options:
Name: Proxy
Relevance: value “ProxyServer” of key “HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings” of registry as string

Only a few PCs report correctly. Most return “error” Singular expression refers to nonexistent object.

What am I doing wrong?

Thanks in advance!

BES Client runs as local system. Play around with this, it’s old but should return what you need.

if exists (current user) then (if (name of operating system as lowercase starts with “win”) then if (exists value “ProxyServer” of key “SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings” of current user keys (logged on users) of registry) AND (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 (value “ProxyServer” of key “SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings” of current user keys (logged on users) of registry as string) 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 “N/A”) else “No User Logged On”

1 Like

It worked great. Thank you very much!