CmdID

CmdID / PowerShell / Cmdlets / Get

Get-CimClass

Gets a list of CIM classes in a specific namespace. PowerShell reference

From the PowerShell reference 8 parameters Alias gcls

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

What it does

from the PowerShell reference, CC BY 4.0

Gets a list of CIM classes in a specific namespace. The Get-CimClass cmdlet retrieves a list of CIM classes in a specific namespace. If there is no class name supplied, then the cmdlet returns all the classes in the namespace. Unlike a CIM instance, CIM classes do not contain the CIM session or computer name from which they are retrieved.

Get-CimClass [[-ClassName] <String>] [[-Namespace] <String>] [-OperationTimeoutSec <UInt32>] [-ComputerName <String[]>] [-MethodName <String>] [-PropertyName <String>] [-QualifierName <String>] [<CommonParameters>]
Get-CimClass [[-ClassName] <String>] [[-Namespace] <String>] [-OperationTimeoutSec <UInt32>] -CimSession <CimSession[]> [-MethodName <String>] [-PropertyName <String>] [-QualifierName <String>] [<CommonParameters>]

Get all the class definitions

Get-CimClassIdentify

Get the classes with a specific name

Get-CimClass -ClassName DiskIdentify

Get the classes with a specific method name

Get-CimClass -ClassName Win32* -MethodName Term*Identify

Get the classes with a specific property name

Get-CimClass -ClassName Win32* -PropertyName HandleIdentify

Get the classes with a specific qualifier name

Get-CimClass -ClassName Win32*Disk* -QualifierName AssociationIdentify

Get the class definitions from a specific namespace

Get-CimClass -Namespace root/StandardCimv2 -ClassName NetIdentify

Get the class definitions from a remote server

Get-CimClass -ClassName Disk -ComputerName Server01, Server02Identify

Get the classes by using a CIM session

$s = New-CimSession -ComputerName Server01, Server02 Get-CimClass -ClassName Disk -CimSession $sIdentify

Its page in the reference: Get-CimClass.

Parameters

8 in the PowerShell reference
-CimSessionRuns the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.
-ClassNameSpecifies the name of the CIM class for which to perform the operation. You can use tab completion to browse the list of classes, because PowerShell gets a list of classes from the local WMI server to provide a list of class names.
-ComputerNameSpecifies the computer on which you want to run the CIM operation. You can specify a fully qualified domain name (FQDN) a NetBIOS name, or an IP address. If you specify this parameter, the cmdlet creates a temporary session to the specified computer using the WsMan protocol. If you do not specify this parameter, the cmdlet performs the operation on the local computer using Component Object Model (COM). If multiple operations are being performed on the same computer, using a CIM session gives better performance.
-MethodNameFinds the classes that have a method matching this name. You can use wildcard characters with this parameter.
-NamespaceSpecifies the namespace for CIM operation. The default namespace is root/CIMV2. You can use tab completion to browse the list of namespaces, because PowerShell gets a list of namespaces from the local WMI server to provide the list of namespaces.
-OperationTimeoutSecSpecifies the amount of time that the cmdlet waits for a response from the computer. By default, the value of this parameter is 0, which means that the cmdlet uses the default timeout value for the server. If the OperationTimeoutSec parameter is set to a value less than the robust connection retry timeout of 3 minutes, network failures that last more than the value of the OperationTimeoutSec parameter are not recoverable, because the operation on the server times out before the client can reconnect.
-PropertyNameFinds the classes which have a property matching this name. You can use wildcard characters with this parameter.
-QualifierNameFilters the classes by class level qualifier name. You can use wildcard characters with this parameter.