Returns information about the Internet proxy server used by a computer.

This script was tested using Object REXX 2.1.0 for Microsoft Windows, available from IBM.

Object REXX
Edit|Remove
strComputer = "."
objWMIService = .OLEObject~GetObject("winmgmts:\\"||strComputer||"\root\CIMV2")
do objItem over objWMIService~ExecQuery("Select * from Win32_Proxy")
    say "Caption:" objItem~Caption
    say "Description:" objItem~Description
    say "Proxy Port Number:" objItem~ProxyPortNumber
    say "Proxy Server:" objItem~ProxyServer
    say "Server Name:" objItem~ServerName
    say "Setting ID:" objItem~SettingID
end