Loading |
VBScript |
JavaScript |
Powershell |
Search Options: WMI Win32_TSClientSetting QueryContent of WMI Win32_TSClientSetting Query.jsMD5 Hash: 5829EF708B8C2A2CD99CDE3CAF1CA5C9 |
||
var wbemFlagReturnImmediately = 0x10;
var wbemFlagForwardOnly = 0x20; var arrComputers = new Array("."); for (i = 0; i < arrComputers.length; i++) { WScript.Echo(); WScript.Echo("=========================================="); WScript.Echo("Computer: " + arrComputers[i]); WScript.Echo("=========================================="); var objWMIService = GetObject("winmgmts:\\\\" + arrComputers[i] + "\\root\\CIMV2"); var colItems = objWMIService.ExecQuery("SELECT * FROM Win32_TSClientSetting", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); var enumItems = new Enumerator(colItems); for (; !enumItems.atEnd(); enumItems.moveNext()) { var objItem = enumItems.item(); WScript.Echo("AudioMapping: " + objItem.AudioMapping); WScript.Echo("Caption: " + objItem.Caption); WScript.Echo("ClipboardMapping: " + objItem.ClipboardMapping); WScript.Echo("ColorDepth: " + objItem.ColorDepth); WScript.Echo("ColorDepthPolicy: " + objItem.ColorDepthPolicy); WScript.Echo("COMPortMapping: " + objItem.COMPortMapping); WScript.Echo("ConnectClientDrivesAtLogon: " + objItem.ConnectClientDrivesAtLogon); WScript.Echo("ConnectionPolicy: " + objItem.ConnectionPolicy); WScript.Echo("ConnectPrinterAtLogon: " + objItem.ConnectPrinterAtLogon); WScript.Echo("DefaultToClientPrinter: " + objItem.DefaultToClientPrinter); WScript.Echo("Description: " + objItem.Description); WScript.Echo("DriveMapping: " + objItem.DriveMapping); WScript.Echo("LPTPortMapping: " + objItem.LPTPortMapping); WScript.Echo("SettingID: " + objItem.SettingID); WScript.Echo("TerminalName: " + objItem.TerminalName); WScript.Echo("WindowsPrinterMapping: " + objItem.WindowsPrinterMapping); } } | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |