Loading |
VBScript |
JavaScript |
Powershell |
Search Options: WMI Win32_TSAccount QueryContent of WMI Win32_TSAccount Query.jsMD5 Hash: A67F4C386458F20AA6E08438E9F33003 |
||
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_TSAccount", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); var enumItems = new Enumerator(colItems); for (; !enumItems.atEnd(); enumItems.moveNext()) { var objItem = enumItems.item(); WScript.Echo("AccountName: " + objItem.AccountName); WScript.Echo("AuditFail: " + objItem.AuditFail); WScript.Echo("AuditSuccess: " + objItem.AuditSuccess); WScript.Echo("Caption: " + objItem.Caption); WScript.Echo("Description: " + objItem.Description); WScript.Echo("PermissionsAllowed: " + objItem.PermissionsAllowed); WScript.Echo("PermissionsDenied: " + objItem.PermissionsDenied); WScript.Echo("SettingID: " + objItem.SettingID); WScript.Echo("SID: " + objItem.SID); WScript.Echo("TerminalName: " + objItem.TerminalName); } } | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |