__PropertyProviderRegistration

Property Provider Registration

Registers property providers in WMI.

On this page

Main example

List instances

# All instances of __PropertyProviderRegistration, with the main properties
Get-CimInstance -ClassName __PropertyProviderRegistration -Namespace 'root' |
    Select-Object -Property SupportsGet, SupportsPut, provider

Examples

Filter with WQL

# WQL filter evaluated by the provider: only the instances where SupportsGet is TRUE
$cimParameters = @{
    ClassName = '__PropertyProviderRegistration'
    Namespace = 'root'
    Filter    = 'SupportsGet = TRUE'
}
Get-CimInstance @cimParameters |
    Select-Object -Property SupportsGet, SupportsPut, provider

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  = '__PropertyProviderRegistration'
        Namespace  = 'root'
    }
    Get-CimInstance @cimParameters |
        Select-Object -Property SupportsGet, SupportsPut, provider
} 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 __PropertyProviderRegistration -Namespace 'root'
$cimClass.CimClassProperties |
    Select-Object -Property Name, CimType, Flags

Properties

3 of 3 properties
NameTypeAccessDescription
provider__Providerread

Reference to an instance of __Provider that represents the object path of the property provider. This property is inherited from __ProviderRegistration.

Code
# Value of provider for each instance
$cimParameters = @{
    ClassName = '__PropertyProviderRegistration'
    Namespace = 'root'
    Property  = 'provider'
}
Get-CimInstance @cimParameters |
    Select-Object -Property provider
SupportsGetbooleanread/write

Describes whether the class or instance provider supports data retrieval.

True

The provider supports data retrieval by implementing IWbemServices::GetObjectAsync.

False

The provider does not support data retrieval, and returns WBEM_E_PROVIDER_NOT_CAPABLE from GetObjectAsync.

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

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

# Warning: changes SupportsGet on the instance. -WhatIf shows the operation without running it.
# Target instance
$instance = Get-CimInstance -ClassName __PropertyProviderRegistration -Namespace 'root' |
    Select-Object -First 1
$setParameters = @{
    InputObject = $instance
    Property    = @{ SupportsGet = $false }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
SupportsPutbooleanread/write

Describes whether the class or instance provider supports data modification.

True

The provider supports class or instance modification by implementing one of the following methods:

  • IWbemServices::PutClassAsync (class providers)
  • IWbemServices::PutInstanceAsync (class providers)

False

The provider does not support data modification and returns WBEM_E_PROVIDER_NOT_CAPABLE from PutClassAsync or PutInstanceAsync.

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

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

# Warning: changes SupportsPut on the instance. -WhatIf shows the operation without running it.
# Target instance
$instance = Get-CimInstance -ClassName __PropertyProviderRegistration -Namespace 'root' |
    Select-Object -First 1
$setParameters = @{
    InputObject = $instance
    Property    = @{ SupportsPut = $false }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters

Remarks

The __PropertyProviderRegistration class is derived from __ProviderRegistration. Only administrators can register a property provider by creating an instance of __Win32Provider and __PropertyProviderRegistration. Only administrators can delete a property provider.

Inheritance

Superclass chain

  1. __SystemClass
  2. __ProviderRegistration
  3. __PropertyProviderRegistration

Known subclasses

No known subclass.

Requirements

Namespace
root
Minimum client
Windows Vista
Minimum server
Windows Server 2008
DLL
All

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.