Modify Terminal Services Client Connection Settings
You can use any of the VBScript programs below in ActiveXperts Network Monitor. Click here for an explanation about how to include scripts in ActiveXperts Network Monitor.
Example(s)
Const CONNECT_CLIENT_DRIVES = 1 Const CONNECT_PRINTER = 1 Const USE_CLIENT_PRINTER = 1 strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_TSClientSetting") For Each objItem in colItems errResult = objItem.ConnectionSettings _ (CONNECT_CLIENT_DRIVES, CONNECT_PRINTER, USE_CLIENT_PRINTER) Next