Loading |
VBScript |
JavaScript |
Powershell |
Search Options: WMI SecurityCertificate QueryContent of WMI SecurityCertificate Query.jsMD5 Hash: 400E6F0018248B46F3DCEE403294B6C7 |
||
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\\Microsoft\\SqlServer\\ComputerManagement10"); var colItems = objWMIService.ExecQuery("SELECT * FROM SecurityCertificate", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); var enumItems = new Enumerator(colItems); for (; !enumItems.atEnd(); enumItems.moveNext()) { var objItem = enumItems.item(); try { WScript.Echo("Context: " + (objItem.Context.toArray()).join(",")); } catch(e) { WScript.Echo("Context: null"); } WScript.Echo("ExpirationDate: " + objItem.ExpirationDate); WScript.Echo("FriendlyName: " + objItem.FriendlyName); WScript.Echo("IssuedBy: " + objItem.IssuedBy); WScript.Echo("IssuedTo: " + objItem.IssuedTo); WScript.Echo("Name: " + objItem.Name); WScript.Echo("SHA: " + objItem.SHA); WScript.Echo("StartDate: " + objItem.StartDate); WScript.Echo("SystemStore: " + objItem.SystemStore); } } | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |