Get-CMDevice
Get-CMDevice
Gets a device of the Configuration Manager hierarchy.
構文
Parameter Set: ByName
Get-CMDevice [-Name <String> ] [ <CommonParameters>]
Parameter Set: ById
Get-CMDevice -Id <String> [ <CommonParameters>]
Parameter Set: SearchByIdMandatory
Get-CMDevice -CollectionId <String> [-Name <String> ] [ <CommonParameters>]
Parameter Set: SearchByIdMandatoryForViewInfectedClients
Get-CMDevice -ThreatId <String> [-CollectionId <String> ] [ <CommonParameters>]
Parameter Set: SearchByNameMandatory
Get-CMDevice -CollectionName <String> [-Name <String> ] [ <CommonParameters>]
Parameter Set: SearchByNameMandatoryForViewInfectedClients
Get-CMDevice -ThreatName <String> [-CollectionId <String> ] [ <CommonParameters>]
Parameter Set: SearchByValueMandatory
Get-CMDevice -Collection <IResultObject> [-Name <String> ] [ <CommonParameters>]
Parameter Set: SearchByValueMandatoryForViewInfectedClients
Get-CMDevice -Threat <IResultObject> [-CollectionId <String> ] [ <CommonParameters>]
詳細説明
The Get-CMDevice cmdlet retrieves a device object that can be added to a collection.
To add a device to a collection use the Add-CMDeviceCollectionDirectMembershipRule cmdlet. For more information about Configuration Manager collections, see Introduction to Collections in Configuration Manager (https://go.microsoft.com/fwlink/p/?LinkID=259433) on TechNet.
パラメーター
-Collection<IResultObject>
Specifies an object that represents the device collection. To obtain a device collection object, use the Get-CMDeviceCollection cmdlet.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-CollectionId<String>
Specifies an ID for a collection in Configuration Manager.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-CollectionName<String>
Specifies a name of a collection in Configuration Manager.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Id<String>
Specifies the ID of the device.
エイリアス |
ResourceID |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Name<String>
Specifies the name of the device.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Threat<IResultObject>
Specifies an object that represents a threat.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-ThreatId<String>
Specifies an ID for a threat.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-ThreatName<String>
Specifies a name for a threat.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Get a device
This command gets the device object named CMCEN-DIST02.
PS C:\> Get-CMDevice -Name "CMCEN-DIST02"