Returns proxy and NNTP information for a computer.

This script was tested using Python 2.2.2-224 for Microsoft Windows, available from ActiveState.

Python
Edit|Remove
import win32com.client
strComputer = "."
objWMIService = win32com.client.Dispatch("WbemScripting.SWbemLocator")
objSWbemServices = objWMIService.ConnectServer(strComputer,"root\cimv2")
colItems = objSWbemServices.ExecQuery("Select * from NetDiagnostics")
for objItem in colItems:
    print "bIE Proxy: ", objItem.bIEProxy
    print "id: ", objItem.id
    print "IE Proxy: ", objItem.IEProxy
    print "IE Proxy Port: ", objItem.IEProxyPort
    print "News NNTP Port: ", objItem.NewsNNTPPort
    print "News Server: ", objItem.NewsServer