Contact Info

Crumbtrail » Administration » Scripts » WMI Performance Counters » VBScript

ReplicationProvider1 - WMI sample in VBScript

The foundations for Manageability in Windows 2019/2012/2008/ and Windows 10/8/7/Vista/XP are 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.

On this site, you can find many WMI samples.

The ReplicationProvider1 WMI class can be used in ActiveXperts Network Monitor to monitor your servers.



Set objWMIService = GetObject("winmgmts:\\.\root\MicrosoftActiveDirectory")

Set colItems = objWMIService.ExecQuery("Select * From ReplicationProvider1")

For Each objItem in colItems
	WScript.Echo "ClientLoadableCLSID:" & objItem.ClientLoadableCLSID
	WScript.Echo "CLSID:" & objItem.CLSID
	WScript.Echo "Concurrency:" & objItem.Concurrency
	WScript.Echo "DefaultMachineName:" & objItem.DefaultMachineName
	WScript.Echo "Enabled:" & objItem.Enabled
	WScript.Echo "HostingModel:" & objItem.HostingModel
	WScript.Echo "ImpersonationLevel:" & objItem.ImpersonationLevel
	WScript.Echo "InitializationReentrancy:" & objItem.InitializationReentrancy
	WScript.Echo "InitializationTimeoutInterval:" & objItem.InitializationTimeoutInterval
	WScript.Echo "InitializeAsAdminFirst:" & objItem.InitializeAsAdminFirst
	WScript.Echo "Name:" & objItem.Name
	WScript.Echo "OperationTimeoutInterval:" & objItem.OperationTimeoutInterval
	WScript.Echo "PerLocaleInitialization:" & objItem.PerLocaleInitialization
	WScript.Echo "PerUserInitialization:" & objItem.PerUserInitialization
	WScript.Echo "Pure:" & objItem.Pure
	WScript.Echo "SecurityDescriptor:" & objItem.SecurityDescriptor
	WScript.Echo "SupportsExplicitShutdown:" & objItem.SupportsExplicitShutdown
	WScript.Echo "SupportsExtendedStatus:" & objItem.SupportsExtendedStatus
	WScript.Echo "SupportsQuotas:" & objItem.SupportsQuotas
	WScript.Echo "SupportsSendStatus:" & objItem.SupportsSendStatus
	WScript.Echo "SupportsShutdown:" & objItem.SupportsShutdown
	WScript.Echo "SupportsThrottling:" & objItem.SupportsThrottling
	WScript.Echo "UnloadTimeout:" & objItem.UnloadTimeout
	WScript.Echo "Version:" & objItem.Version
	WScript.Echo ""
	WScript.Echo "########"
	WScript.Echo ""