Lists the network adapters that can be configured for Terminal Services.

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_TSNetworkAdapterListSetting")
For Each $objItem in $colItems
    ? "Caption:" + $objItem.Caption
    ? "Description:" + $objItem.Description
    ? "Network Adapter ID:" + $objItem.NetworkAdapterID
    ? "Setting ID:" + $objItem.SettingID
    ? "Terminal Name:" + $objItem.TerminalName
    ? "Terminal Protocol:" + $objItem.TerminalProtocol
    ? "Transport:" + $objItem.Transport
Next