Main example
List instances
# All instances of __PropertyProviderRegistration, with the main properties
Get-CimInstance -ClassName __PropertyProviderRegistration -Namespace 'root' |
Select-Object -Property SupportsGet, SupportsPut, providerExamples
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, providerThe 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, FlagsProperties
| Name | Type | Access | Description |
|---|---|---|---|
| provider# | __Provider | read | Reference to an instance of __Provider that represents the object path of the property provider. This property is inherited from __ProviderRegistration. Code |
| SupportsGet# | boolean | read/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. CodeWarning. Changes the system: check with -WhatIf first. An elevated console is often required. |
| SupportsPut# | boolean | read/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:
False The provider does not support data modification and returns WBEM_E_PROVIDER_NOT_CAPABLE from PutClassAsync or PutInstanceAsync. CodeWarning. Changes the system: check with -WhatIf first. An elevated console is often required. |
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
- __SystemClass
- __ProviderRegistration
- __PropertyProviderRegistration
Known subclasses
No known subclass.
Requirements
- Namespace
- root
- Minimum client
- Windows Vista
- Minimum server
- Windows Server 2008
- DLL
- All
Microsoft source
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.