Loading |
VBScript |
JavaScript |
Powershell |
Search Options: WMI MS1394_BusInformation QueryContent of WMI MS1394_BusInformation Query.jsMD5 Hash: C190FD32A2DFCCC6D5AFF74D25B02E5B |
||
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\\WMI"); var colItems = objWMIService.ExecQuery("SELECT * FROM MS1394_BusInformation", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); var enumItems = new Enumerator(colItems); for (; !enumItems.atEnd(); enumItems.moveNext()) { var objItem = enumItems.item(); WScript.Echo("Active: " + objItem.Active); WScript.Echo("Generation: " + objItem.Generation); WScript.Echo("InstanceName: " + objItem.InstanceName); try { WScript.Echo("LocalHostSelfId: " + (objItem.LocalHostSelfId.toArray()).join(",")); } catch(e) { WScript.Echo("LocalHostSelfId: null"); } WScript.Echo("Reserved1: " + objItem.Reserved1); try { WScript.Echo("TopologyMap: " + (objItem.TopologyMap.toArray()).join(",")); } catch(e) { WScript.Echo("TopologyMap: null"); } try { WScript.Echo("TreeTopologyMap: " + (objItem.TreeTopologyMap.toArray()).join(",")); } catch(e) { WScript.Echo("TreeTopologyMap: null"); } } } | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |