Get-CMDeviceCollection
Get-CMDeviceCollection
Gets one or more device collections in the Configuration Manager hierarchy.
構文
Parameter Set: SearchByName
Get-CMDeviceCollection [-Name <String> ] [ <CommonParameters>]
Parameter Set: SearchByDPGroupId
Get-CMDeviceCollection -DistributionPointGroupId <String> [ <CommonParameters>]
Parameter Set: SearchByDPGroupName
Get-CMDeviceCollection -DistributionPointGroupName <String> [ <CommonParameters>]
Parameter Set: SearchByIdMandatory
Get-CMDeviceCollection -CollectionId <String> [ <CommonParameters>]
Parameter Set: SearchByValueMandatory
Get-CMDeviceCollection -DistributionPointGroup <IResultObject> [ <CommonParameters>]
詳細説明
The Get-CMDeviceCollection cmdlet retrieves collections that contain computers or mobile devices. For more information about collections, see Introduction to Collections in Configuration Manager (https://go.microsoft.com/fwlink/p/?LinkID=259433) on TechNet.
パラメーター
-CollectionId<String>
Specifies the ID of the device collection.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-DistributionPointGroup<IResultObject>
Specifies an object that represents a distribution point group that is associated with the device collections.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-DistributionPointGroupId<String>
Specifies the ID of a distribution point group that is associated with the device collections.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-DistributionPointGroupName<String>
Specifies the name of a distribution point group that is associated with the device collections.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Name<String>
Specifies the names of the device collections. If a specific collection is not specified, all device collections in the hierarchy are returned.
エイリアス |
なし |
必須? |
false |
位置は? |
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 collection by using an ID
This command gets the device collection that has the ID 9990000D.
PS C:\> Get-CMDeviceCollection -CollectionId "9990000D"