Loading |
VBScript |
JavaScript |
Powershell |
Search Options: WMI MSParallel_DeviceBytesTransferred QueryContent of WMI MSParallel_DeviceBytesTransferred Query.jsMD5 Hash: BE6FAAECE65F063AF551EC2836196A0B |
||
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 MSParallel_DeviceBytesTransferred", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); var enumItems = new Enumerator(colItems); for (; !enumItems.atEnd(); enumItems.moveNext()) { var objItem = enumItems.item(); WScript.Echo("Active: " + objItem.Active); WScript.Echo("BoundedEcpReadCount: " + objItem.BoundedEcpReadCount); WScript.Echo("BoundedEcpWriteCount: " + objItem.BoundedEcpWriteCount); WScript.Echo("ByteReadCount: " + objItem.ByteReadCount); WScript.Echo("ChannelNibbleReadCount: " + objItem.ChannelNibbleReadCount); WScript.Echo("Flags1: " + objItem.Flags1); WScript.Echo("Flags2: " + objItem.Flags2); WScript.Echo("HwEcpReadCount: " + objItem.HwEcpReadCount); WScript.Echo("HwEcpWriteCount: " + objItem.HwEcpWriteCount); WScript.Echo("HwEppReadCount: " + objItem.HwEppReadCount); WScript.Echo("HwEppWriteCount: " + objItem.HwEppWriteCount); WScript.Echo("InstanceName: " + objItem.InstanceName); WScript.Echo("NibbleReadCount: " + objItem.NibbleReadCount); try { WScript.Echo("spare: " + (objItem.spare.toArray()).join(",")); } catch(e) { WScript.Echo("spare: null"); } WScript.Echo("SppWriteCount: " + objItem.SppWriteCount); WScript.Echo("SwEcpReadCount: " + objItem.SwEcpReadCount); WScript.Echo("SwEcpWriteCount: " + objItem.SwEcpWriteCount); WScript.Echo("SwEppReadCount: " + objItem.SwEppReadCount); WScript.Echo("SwEppWriteCount: " + objItem.SwEppWriteCount); } } | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |