external help file | Module Name | online version | schema |
---|---|---|---|
PSScriptTools-help.xml |
PSScriptTools |
2.0.0 |
Get information about CIM class members.
Get-CimMember [[-ClassName] <String>] [-Property <String>] [-Namespace <String>] [-CimSession <CimSession>] [<CommonParameters>]
Get-CimMember [[-ClassName] <String>] -Method <String> [-Namespace <String>] [-CimSession <CimSession>] [<CommonParameters>]
This is a wrapper function that will invoke Get-CimClassProperty or Get-CimClassMethod based on the parameter set used. The default is to show all properties for a given class.
PS C:\> Get-CimMember -ClassName win32_volume
Class: Root/Cimv2:Win32_Volume
Property ValueType Flags
-------- --------- -----
Access UInt16 ReadOnly, NullValue
Automount Boolean ReadOnly, NullValue
Availability UInt16 ReadOnly, NullValue
BlockSize UInt64 ReadOnly, NullValue
BootVolume Boolean ReadOnly, NullValue
Capacity UInt64 ReadOnly, NullValue
Caption String ReadOnly, NullValue
Compressed Boolean ReadOnly, NullValue
...
The default is to show all properties for a given class.
PS C:\> Get-CimMember -ClassName win32_Volume -Property q*
Class: Root/Cimv2:Win32_Volume
Property ValueType Flags
-------- --------- -----
QuotasEnabled Boolean ReadOnly, NullValue
QuotasIncomplete Boolean ReadOnly, NullValue
QuotasRebuilding Boolean ReadOnly, NullValue
You can filter the output by property name using wildcards.
PS C:\> Get-CimMember -ClassName win32_bios -Method *
WARNING: No methods found for Root\Cimv2:WIN32_BIOS
Specify a computer name or an existing CimSession object.
Type: CimSession
Parameter Sets: (All)
Aliases: CN
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
The name of a CIM class.
Type: String
Parameter Sets: (All)
Aliases: CimClassName
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specify a method name. Wildcards are permitted.
Type: String
Parameter Sets: method
Aliases: Name
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specify the class namespace beginning with ROOT.
Type: String
Parameter Sets: (All)
Aliases: NS
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specify a property name. Wildcards are permitted.
Type: String
Parameter Sets: property
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.