Loading |
VBScript |
JavaScript |
Powershell |
Search Options: WMI Endpoint QueryContent of WMI Endpoint Query.jsMD5 Hash: 055100A0EAAC8ECE7D267A3FDE85BAD7 |
||
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\\ServiceModel"); var colItems = objWMIService.ExecQuery("SELECT * FROM Endpoint", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); var enumItems = new Enumerator(colItems); for (; !enumItems.atEnd(); enumItems.moveNext()) { var objItem = enumItems.item(); WScript.Echo("Address: " + objItem.Address); try { WScript.Echo("AddressHeaders: " + (objItem.AddressHeaders.toArray()).join(",")); } catch(e) { WScript.Echo("AddressHeaders: null"); } WScript.Echo("AddressIdentity: " + objItem.AddressIdentity); WScript.Echo("AppDomainId: " + objItem.AppDomainId); try { WScript.Echo("Behaviors: " + (objItem.Behaviors.toArray()).join(",")); } catch(e) { WScript.Echo("Behaviors: null"); } WScript.Echo("Binding: " + objItem.Binding); WScript.Echo("Contract: " + objItem.Contract); WScript.Echo("ContractName: " + objItem.ContractName); WScript.Echo("CounterInstanceName: " + objItem.CounterInstanceName); WScript.Echo("ListenUri: " + objItem.ListenUri); WScript.Echo("Name: " + objItem.Name); WScript.Echo("ProcessId: " + objItem.ProcessId); } } | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |