Loading |
VBScript |
JavaScript |
Powershell |
Search Options: WMI Msft_WmiProvider_Counters QueryContent of WMI Msft_WmiProvider_Counters Query.jsMD5 Hash: BF3C7E0A9E5F72FC498F5004D9BDC8ED |
||
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 Msft_WmiProvider_Counters", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); var enumItems = new Enumerator(colItems); for (; !enumItems.atEnd(); enumItems.moveNext()) { var objItem = enumItems.item(); WScript.Echo("ProviderOperation_AccessCheck: " + objItem.ProviderOperation_AccessCheck); WScript.Echo("ProviderOperation_CancelQuery: " + objItem.ProviderOperation_CancelQuery); WScript.Echo("ProviderOperation_CreateClassEnumAsync: " + objItem.ProviderOperation_CreateClassEnumAsync); WScript.Echo("ProviderOperation_CreateInstanceEnumAsync: " + objItem.ProviderOperation_CreateInstanceEnumAsync); WScript.Echo("ProviderOperation_CreateRefreshableEnum: " + objItem.ProviderOperation_CreateRefreshableEnum); WScript.Echo("ProviderOperation_CreateRefreshableObject: " + objItem.ProviderOperation_CreateRefreshableObject); WScript.Echo("ProviderOperation_CreateRefresher: " + objItem.ProviderOperation_CreateRefresher); WScript.Echo("ProviderOperation_DeleteClassAsync: " + objItem.ProviderOperation_DeleteClassAsync); WScript.Echo("ProviderOperation_DeleteInstanceAsync: " + objItem.ProviderOperation_DeleteInstanceAsync); WScript.Echo("ProviderOperation_ExecMethodAsync: " + objItem.ProviderOperation_ExecMethodAsync); WScript.Echo("ProviderOperation_ExecQueryAsync: " + objItem.ProviderOperation_ExecQueryAsync); WScript.Echo("ProviderOperation_FindConsumer: " + objItem.ProviderOperation_FindConsumer); WScript.Echo("ProviderOperation_GetObjectAsync: " + objItem.ProviderOperation_GetObjectAsync); WScript.Echo("ProviderOperation_GetObjects: " + objItem.ProviderOperation_GetObjects); WScript.Echo("ProviderOperation_GetProperty: " + objItem.ProviderOperation_GetProperty); WScript.Echo("ProviderOperation_NewQuery: " + objItem.ProviderOperation_NewQuery); WScript.Echo("ProviderOperation_ProvideEvents: " + objItem.ProviderOperation_ProvideEvents); WScript.Echo("ProviderOperation_PutClassAsync: " + objItem.ProviderOperation_PutClassAsync); WScript.Echo("ProviderOperation_PutInstanceAsync: " + objItem.ProviderOperation_PutInstanceAsync); WScript.Echo("ProviderOperation_PutProperty: " + objItem.ProviderOperation_PutProperty); WScript.Echo("ProviderOperation_QueryInstances: " + objItem.ProviderOperation_QueryInstances); WScript.Echo("ProviderOperation_SetRegistrationObject: " + objItem.ProviderOperation_SetRegistrationObject); WScript.Echo("ProviderOperation_StopRefreshing: " + objItem.ProviderOperation_StopRefreshing); WScript.Echo("ProviderOperation_ValidateSubscription: " + objItem.ProviderOperation_ValidateSubscription); } } | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |