__Win32Provider

Win32Provider
rootkey : Name

Registers information about the physical implementation of a provider in WMI. Providers that do not set the HostingModel property are loaded, by default, to run in a Wmiprvse.exe process as NetworkServiceHostOrSelfHost.

On this page

Main example

List instances

# All instances of __Win32Provider, with the main properties
Get-CimInstance -ClassName __Win32Provider -Namespace 'root' |
    Select-Object -Property Name, Version, ClientLoadableCLSID, CLSID

Examples

Filter with WQL

# WQL filter evaluated by the provider: only the instances where Enabled is TRUE
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = 'Enabled = TRUE'
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, Version, ClientLoadableCLSID, CLSID

The filter is evaluated by the WMI provider: less data is transferred than with Where-Object.

Query a remote computer (CIM session)

review before running
# Name of the remote computer
$computerName = 'SERVER01'
# The CIM session (WSMan by default) can be reused for several queries
$cimSession = New-CimSession -ComputerName $computerName
try {
    $cimParameters = @{
        CimSession = $cimSession
        ClassName  = '__Win32Provider'
        Namespace  = 'root'
    }
    Get-CimInstance @cimParameters |
        Select-Object -Property Name, Version, ClientLoadableCLSID, CLSID
} finally {
    Remove-CimSession -CimSession $cimSession
}

WSMan (WinRM) is used by default. For a host without WinRM, create the session with -SessionOption (New-CimSessionOption -Protocol Dcom). Add -Credential to use another account.

Show the class structure

# Class structure: properties, types and flags (Key, ReadOnly…)
$cimClass = Get-CimClass -ClassName __Win32Provider -Namespace 'root'
$cimClass.CimClassProperties |
    Select-Object -Property Name, CimType, Flags

Properties

24 of 24 properties
NameTypeAccessDescription
ClientLoadableCLSIDstringread/write

Class identifier that WMI uses to determine whether or not to load a high performance provider into the client process or the WMI process. If both the provider and client are located on the same computer, WMI loads the provider in-process to the client by using ClientLoadableCLSID as the class identifier. When the provider and client are located on different computers, WMI loads the provider in-process to WMI. WMI also uses ClientLoadableCLSID to support refresh operations.

For more information, see Registering a High-Performance Provider.

Code
# Value of ClientLoadableCLSID for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'ClientLoadableCLSID')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, ClientLoadableCLSID

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes ClientLoadableCLSID on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ ClientLoadableCLSID = 'Example' }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
CLSIDstringread/write

GUID that represents the class identifier (CLSID) of the provider COM object. This COM object must contain an implementation of the IWbemProviderInit interface.

Code
# Value of CLSID for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'CLSID')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, CLSID

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes CLSID on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ CLSID = 'Example' }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
Concurrencysint32read/write

Not used.

Code
# Value of Concurrency for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'Concurrency')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, Concurrency

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes Concurrency on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ Concurrency = 0 }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
DefaultMachineNamestringread/write

Identifies the computer on which to start the provider. If the provider runs on the local computer it is NULL.

Code
# Value of DefaultMachineName for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'DefaultMachineName')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, DefaultMachineName

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes DefaultMachineName on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ DefaultMachineName = 'Example' }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
Enabledbooleanread/write

If TRUE, this instance is enabled and can be used to complete client requests.

Code
# Value of Enabled for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'Enabled')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, Enabled

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes Enabled on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ Enabled = $false }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
HostingModelstringread/write

This property is composed of values from the MSFT_Providers HostingGroup and HostingSpecification properties. The value of this property specifies how WMI loads the provider and the security account it runs under. For more information about setting the HostingModel property, see Provider Hosting and Security and Registering a Provider.

Code
# Value of HostingModel for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'HostingModel')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, HostingModel

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes HostingModel on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ HostingModel = 'Example' }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
ImpersonationLevelsint32read/write

Reserved. The default value is zero (0).

Code
# Value of ImpersonationLevel for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'ImpersonationLevel')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, ImpersonationLevel

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes ImpersonationLevel on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ ImpersonationLevel = 0 }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
InitializationReentrancysint32read/write

Set of flags that provide information about serialization. The default value is zero (0).

0

All initialization of this provider must be serialized.

1

All initializations of this provider in the same namespace must be serialized.

2

No initialization serialization is necessary.

Code
# Value of InitializationReentrancy for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'InitializationReentrancy')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, InitializationReentrancy

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes InitializationReentrancy on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ InitializationReentrancy = 0 }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
InitializationTimeoutIntervaldatetimeread/write

Not used.

Code
# Value of InitializationTimeoutInterval for each instance
# CIM cmdlets already return a DateTime object: no conversion is needed
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'InitializationTimeoutInterval')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, InitializationTimeoutInterval

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes InitializationTimeoutInterval on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ InitializationTimeoutInterval = (Get-Date) }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
InitializeAsAdminFirstbooleanread/write

TBD

Code
# Value of InitializeAsAdminFirst for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'InitializeAsAdminFirst')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, InitializeAsAdminFirst

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes InitializeAsAdminFirst on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ InitializeAsAdminFirst = $false }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
Name keystringread/write

The provider name.

Code
# Value of Name for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = 'Name'
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes Name on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ Name = 'Example' }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
OperationTimeoutIntervaldatetimeread/write

Not used.

Code
# Value of OperationTimeoutInterval for each instance
# CIM cmdlets already return a DateTime object: no conversion is needed
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'OperationTimeoutInterval')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, OperationTimeoutInterval

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes OperationTimeoutInterval on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ OperationTimeoutInterval = (Get-Date) }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
PerLocaleInitializationbooleanread/write

If TRUE, the provider is initialized for each locale when a user connects to the same namespace more than one time using different locales. The default value is FALSE.

Code
# Value of PerLocaleInitialization for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'PerLocaleInitialization')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, PerLocaleInitialization

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes PerLocaleInitialization on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ PerLocaleInitialization = $false }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
PerUserInitializationbooleanread/write

If TRUE, the provider is initialized one time for each NT LAN Manager (NTLM) user that makes requests to the provider. If FALSE (default), the provider is initialized one time for all users.

Code
# Value of PerUserInitialization for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'PerUserInitialization')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, PerUserInitialization

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes PerUserInitialization on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ PerUserInitialization = $false }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
Purebooleanread/write

If TRUE, the provider agrees to prepare to unload by calling IUnknown::Release on all outstanding interface points when WMI calls the Release method of its primary interface. Providers that must remain clients of WMI after they do not function as providers should set Pure to FALSE. The default setting is TRUE. For more information, see the Remarks section of this topic.

Code
# Value of Pure for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'Pure')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, Pure

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes Pure on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ Pure = $false }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
SecurityDescriptorstringread/write

Security descriptor (SD) in the Security Descriptor Definition Language (SDDL) that determines the set of users that can successfully call IWbemDecoupledRegistrar:Register for the decoupled provider. For more information, see the Security Descriptor Definition Language topic in the Security section of the Windows SDK. This security descriptor is used only for decoupled providers, and does not affect other providers. For more information, see Incorporating a Provider in an Application.

WMI performs access checks for decoupled providers that use the IWbemProviderInit and IWbemObjectSink interfaces. If the security descriptor is NULL, then only applications or services that run under the LocalSystem, NetworkService, LocalService accounts can run a decoupled provider.

The following string shows a decoupled provider to be run only by built-in Administrators."O:BAG:BAD:(A;;0x1;;;BA)"

For more information about setting the SecurityDescriptor property, see Maintaining WMI Security.

Code
# Value of SecurityDescriptor for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'SecurityDescriptor')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, SecurityDescriptor

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes SecurityDescriptor on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ SecurityDescriptor = 'Example' }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
SupportsExplicitShutdownbooleanread/write

Not used.

Code
# Value of SupportsExplicitShutdown for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'SupportsExplicitShutdown')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, SupportsExplicitShutdown

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes SupportsExplicitShutdown on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ SupportsExplicitShutdown = $false }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
SupportsExtendedStatusbooleanread/write

Not used.

Code
# Value of SupportsExtendedStatus for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'SupportsExtendedStatus')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, SupportsExtendedStatus

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes SupportsExtendedStatus on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ SupportsExtendedStatus = $false }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
SupportsQuotasbooleanread/write

Not used.

Code
# Value of SupportsQuotas for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'SupportsQuotas')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, SupportsQuotas

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes SupportsQuotas on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ SupportsQuotas = $false }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
SupportsSendStatusbooleanread/write

Not used.

Code
# Value of SupportsSendStatus for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'SupportsSendStatus')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, SupportsSendStatus

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes SupportsSendStatus on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ SupportsSendStatus = $false }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
SupportsShutdownbooleanread/write

Not used.

Code
# Value of SupportsShutdown for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'SupportsShutdown')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, SupportsShutdown

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes SupportsShutdown on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ SupportsShutdown = $false }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
SupportsThrottlingbooleanread/write

Not used.

Code
# Value of SupportsThrottling for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'SupportsThrottling')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, SupportsThrottling

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes SupportsThrottling on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ SupportsThrottling = $false }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
UnloadTimeoutdatetimeread/write

Date and Time Format that specifies how long WMI allows the provider to remain idle before it is unloaded. Typically, providers request that WMI wait no longer than five minutes.

For the current version of WMI, the value of this property is ignored. WMI unloads the provider based on the time-out value in an internal class in the \root namespace. It is recommended that providers set UnloadTimeout. For more information, see Unloading a Provider.

Code
# Value of UnloadTimeout for each instance
# CIM cmdlets already return a DateTime object: no conversion is needed
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'UnloadTimeout')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, UnloadTimeout

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes UnloadTimeout on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ UnloadTimeout = (Get-Date) }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
Versionuint32read/write

Version of the provider. The supported versions are 1 and 2. Version 2 strengthens validity checks for all associated property registrations, specifically the ImpersonationLevel property.

Code
# Value of Version for each instance
$cimParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Property  = @('Name', 'Version')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, Version

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes Version on the instance. -WhatIf shows the operation without running it.
# Target instance
$instanceParameters = @{
    ClassName = '__Win32Provider'
    Namespace = 'root'
    Filter    = "Name = 'Example'"
}
$instance = Get-CimInstance @instanceParameters
$setParameters = @{
    InputObject = $instance
    Property    = @{ Version = 0 }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters

Remarks

The __Win32Provider class is derived from __Provider.

Most providers can accept the default values for the InitializationReentrancy property. However, if a provider can support simultaneous initialization for separate users, this property can be set to 1 (one). If serialized initialization is necessary, InitializationReentrancy remains 0 (zero). In both instances, PerUserInitialization is set to TRUE.

A pure provider or a provider that sets the Pure property to TRUE, exists only to service requests from applications and WMI. Most providers are pure providers. A nonpure provider is the exception. Nonpure providers transition to the role of client after they complete servicing requests.

An example of a nonpure provider is a push provider that starts to issue queries, and makes requests of WMI after it completes initialization. A push provider does not have responsibilities except to update the CIM repository with data at initialization time. After updating the repository, a push provider can wait to be unloaded, or transition to the role of client. The push provider that waits to be unloaded is a pure provider. The push provider that participates in client activities is nonpure.

WMI must be able to distinguish pure providers from non-pure providers so that it can determine when it is safe to shut down. WMI must wait for all operations that involve non-pure providers to complete before it can shut down safely.

Inheritance

Superclass chain

  1. __SystemClass
  2. __Provider
  3. __Win32Provider

Known subclasses

No known subclass.

Requirements

Namespace
root
Minimum client
Windows Vista
Minimum server
Windows Server 2008

Microsoft source

Source: Microsoft Learn

Descriptions, properties and methods come from the Microsoft documentation (MicrosoftDocs/win32 repository), published under the CC BY 4.0 licence. Formatting and translations are specific to this site; the PowerShell examples are written for it.