Win32_PerfRawData_ADWS jscript sample code
The foundations for Manageability in Windows is Windows Management Instrumentation (WMI; formerly WBEM) and WMI extensions for Windows Driver Model (WDM).
ActiveXperts Network Monitor provides the ability to build monitor check routines based on WMI. ActiveXperts has collected more than a hundred WMI samples. You can use these samples as a base for new check routines you can write yourself. The Win32_PerfRawData_ADWS WMI class can be used in ActiveXperts Network Monitor to monitor your servers.
Sample Code
var strComputer = "."; var objWMIService = GetObject("winmgmts:\\\\" + strComputer + "\\root\\CIMV2"); var colItems = objWMIService.ExecQuery("SELECT * FROM Win32_PerfRawData_ADWS_ADWS", "WQL"); var enumItems = new Enumerator(colItems); for (; !enumItems.atEnd(); enumItems.moveNext()) { var objItem = enumItems.item(); WScript.Echo("ActiveWebServiceSessions: " + objItem.ActiveWebServiceSessions); WScript.Echo("AllocatedConnections: " + objItem.AllocatedConnections); WScript.Echo("Caption: " + objItem.Caption); WScript.Echo("ChangeOptionalFeatureOperationsPerSecond: " + objItem.ChangeOptionalFeatureOperationsPerSecond); WScript.Echo("ChangePasswordOperationsPerSecond: " + objItem.ChangePasswordOperationsPerSecond); WScript.Echo("CreateOperationsPerSecond: " + objItem.CreateOperationsPerSecond); WScript.Echo("CustomActionCacheSize: " + objItem.CustomActionCacheSize); WScript.Echo("CustomActionDSRPCCacheConnectionCreationRate: " + objItem.CustomActionDSRPCCacheConnectionCreationRate); WScript.Echo("CustomActionDSRPCCacheConnectionReuseRate: " + objItem.CustomActionDSRPCCacheConnectionReuseRate); WScript.Echo("CustomActionDSRPCCacheMaximumPossibleSize: " + objItem.CustomActionDSRPCCacheMaximumPossibleSize); WScript.Echo("CustomActionLDAPCacheConnectionCreationRate: " + objItem.CustomActionLDAPCacheConnectionCreationRate); WScript.Echo("CustomActionLDAPCacheConnectionReuseRate: " + objItem.CustomActionLDAPCacheConnectionReuseRate); WScript.Echo("CustomActionLDAPCacheMaximumPossibleSize: " + objItem.CustomActionLDAPCacheMaximumPossibleSize); WScript.Echo("DeleteOperationsPerSecond: " + objItem.DeleteOperationsPerSecond); WScript.Echo("Description: " + objItem.Description); WScript.Echo("EnumerateOperationsPerSecond: " + objItem.EnumerateOperationsPerSecond); WScript.Echo("Frequency_Object: " + objItem.Frequency_Object); WScript.Echo("Frequency_PerfTime: " + objItem.Frequency_PerfTime); WScript.Echo("Frequency_Sys100NS: " + objItem.Frequency_Sys100NS); WScript.Echo("GetADDomainControllerOperationsPerSecond: " + objItem.GetADDomainControllerOperationsPerSecond); WScript.Echo("GetADDomainOperationsPerSecond: " + objItem.GetADDomainOperationsPerSecond); WScript.Echo("GetADForestOperationsPerSecond: " + objItem.GetADForestOperationsPerSecond); WScript.Echo("GetADGroupMemberOperationsPerSecond: " + objItem.GetADGroupMemberOperationsPerSecond); WScript.Echo("GetADPrincipalAuthorizationGroupOperationsPerSecond: " + objItem.GetADPrincipalAuthorizationGroupOperationsPerSecond); WScript.Echo("GetADPrincipalGroupMembershipOperationsPerSecond: " + objItem.GetADPrincipalGroupMembershipOperationsPerSecond); WScript.Echo("GetOperationsPerSecond: " + objItem.GetOperationsPerSecond); WScript.Echo("GetVersionOperationsPerSecond: " + objItem.GetVersionOperationsPerSecond); WScript.Echo("MoveADOperationMasterRoleOperationsPerSecond: " + objItem.MoveADOperationMasterRoleOperationsPerSecond); WScript.Echo("Name: " + objItem.Name); WScript.Echo("NonreservedConnectionsInUse: " + objItem.NonreservedConnectionsInUse); WScript.Echo("NumberofDirectoryInstances: " + objItem.NumberofDirectoryInstances); WScript.Echo("OpenEnumerationContexts: " + objItem.OpenEnumerationContexts); WScript.Echo("OpenWebServiceSessions: " + objItem.OpenWebServiceSessions); WScript.Echo("PossibleConnections: " + objItem.PossibleConnections); WScript.Echo("PullOperationsPerSecond: " + objItem.PullOperationsPerSecond); WScript.Echo("PutOperationsPerSecond: " + objItem.PutOperationsPerSecond); WScript.Echo("ReservedConnections: " + objItem.ReservedConnections); WScript.Echo("ReservedConnectionsInUse: " + objItem.ReservedConnectionsInUse); WScript.Echo("SetPasswordOperationsPerSecond: " + objItem.SetPasswordOperationsPerSecond); WScript.Echo("Timestamp_Object: " + objItem.Timestamp_Object); WScript.Echo("Timestamp_PerfTime: " + objItem.Timestamp_PerfTime); WScript.Echo("Timestamp_Sys100NS: " + objItem.Timestamp_Sys100NS); WScript.Echo("TranslateNameOperationsPerSecond: " + objItem.TranslateNameOperationsPerSecond); WScript.Echo("WebServiceSessionsCreatedPerSecond: " + objItem.WebServiceSessionsCreatedPerSecond); WScript.Echo("") WScript.Echo("########") WScript.Echo("") }