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

This script was tested using Kixtart 2001 (412) for Microsoft Windows, available from Kixtart.org.

Kixtart
Edit|Remove
$strComputer = "."
$objWMIService = GetObject("winmgmts:\\"+ $strComputer + "\root\cimv2")
$colItems = $objWMIService.ExecQuery("Select * from Win32_Proxy")
For Each $objItem in $colItems
    ? "Caption:" + $objItem.Caption
    ? "Description:" + $objItem.Description
    ? "Proxy Port Number:" + $objItem.ProxyPortNumber
    ? "Proxy Server:" + $objItem.ProxyServer
    ? "Server Name:" + $objItem.ServerName
    ? "Setting ID:" + $objItem.SettingID
Next