Get-SCSMClass
Get-SCSMClass
Retrieves a class.
構文
Parameter Set: Empty
Get-SCSMClass [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]
Parameter Set: FromClassDisplayName
Get-SCSMClass [-DisplayName] <String[]> [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]
Parameter Set: FromClassGuids
Get-SCSMClass [-Id] <Guid[]> [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]
Parameter Set: FromClassName
Get-SCSMClass [-Name] <String[]> [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]
Parameter Set: FromEMO
Get-SCSMClass [-Instance] <EnterpriseManagementObject[]> [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]
Parameter Set: FromManagementPack
Get-SCSMClass [-ManagementPack] <ManagementPack[]> [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]
詳細説明
The Get-SCSMClass cmdlet retrieves a class.
パラメーター
-ComputerName<String[]>
Specifies a computer to establish a connection with. The computer must be running the System Center Data Access service. The default value is the computer for the current management group connection.
Valid formats include a NetBIOS name, an IP address, or a fully qualified domain name (FQDN). To specify the local computer, type the computer name, "localhost", or a dot (.).
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
localhost |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-Credential<PSCredential>
Specifies a user account under which the management group connection will run. The account must have access to the server that is specified in the ComputerName parameter, if the server is specified. The default value is the current user.
You can enter a PSCredential object that is returned by the Get-Credential cmdlet.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
Current user context |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-DisplayName<String[]>
Specifies the display name of the class to retrieve.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Id<Guid[]>
Specifies the Id of the class to retrieve. This may be a Guid or a string that will be converted to a Guid.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-Instance<EnterpriseManagementObject[]>
Specifies an instance of a class to retrieve.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-ManagementPack<ManagementPack[]>
Specifies one or more management packs containing the classes to retrieve.
You can enter a ManagementPack object that is returned by the Get-SCManagementPack cmdlet.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-Name<String[]>
Specifies the name of a class to retrieve.
エイリアス |
なし |
必須? |
true |
位置は? |
1 |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-SCSession<Connection[]>
Specifies a connection to a management server. The default value is the current management group connection.
You can enter a management group connection object that is returned by the Get-SCManagementGroupConnection cmdlet.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject
You can pipe an instance of a management pack to the Instance parameter of the Get-SCSMClass cmdlet. The Microsoft.EnterpriseManagement.Common.EnterpriseManagementObject object is one the properties of the output object of the Get-SCSMClassinstance cmdlet.
System.Guid
You can pipe a Guid to the Id parameter of the Get-SCSMClass cmdlets.
Microsoft.EnterpriseManagement.Configuration.ManagementPackManagementPack
You can pipe a management pack to the ManagementPack parameter of the Get-SCSMClass cmdlet. This management pack object should contain the class to retrieve.
System.String
You can pipe a name to the Name parameter of the Get-SCSMClass cmdlet.
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
Microsoft.EnterpriseManagement.Configuration.ManagementPackClass
This cmdlet generates a management pack object.
例
-------------------------- EXAMPLE 1 --------------------------
The command in this example retrieves all classes that end with “user”.
PS C:\>Get-SCSMClass -name *user
-------------------------- EXAMPLE 2 --------------------------
The command in this example retrieves the class in which DisplayName equals "User".
C:\PS>Get-SCSMClass -DisplayName User
-------------------------- EXAMPLE 3 --------------------------
The command in this example determines the class of an object, for which all you have is the object itself.
C:\PS>Get-SCSMClass -name System.User | Get-scsmclassinstance |select -first 1 | %{$_.__enterprisemanagementobject}|Get-SCSMClass