Lists Terminal Services network adapter settings, including the maximum number of connections allowed.

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

import win32com.client
strComputer = "."
objWMIService = win32com.client.Dispatch("WbemScripting.SWbemLocator")
objSWbemServices = objWMIService.ConnectServer(strComputer,"root\cimv2")
colItems = objSWbemServices.ExecQuery("Select * from Win32_TSNetworkAdapterSetting")
for objItem in colItems:
    print "Caption: ", objItem.Caption
    print "Description: ", objItem.Description
    print "Maximum Connections: ", objItem.MaximumConnections
    print "Network Adapter ID: ", objItem.NetworkAdapterID
    print "Network Adapter Name: ", objItem.NetworkAdapterName
    print "Setting ID: ", objItem.SettingID
    print "Terminal Name: ", objItem.TerminalName