Get-CMDeviceCollectionVariable
Get-CMDeviceCollectionVariable
Gets the task sequence variables for a device collection in the Configuration Manager hierarcy.
構文
Parameter Set: SearchByNameMandatory
Get-CMDeviceCollectionVariable -CollectionName <String> -VariableName <String> [ <CommonParameters>]
Parameter Set: SearchByIdMandatory
Get-CMDeviceCollectionVariable -CollectionId <String> -VariableName <String> [ <CommonParameters>]
Parameter Set: SearchByValueMandatory
Get-CMDeviceCollectionVariable -Collection <IResultObject> -VariableName <String> [ <CommonParameters>]
詳細説明
The Get-CMDeviceCollectionVariable cmdlet gets the variables of the task sequences for a device collection.
Task sequence variables are a set of name and value pairs that provide a mechanism to configure and customize the steps of a task sequence when the task sequence is deployed to a specific collection. For more information about task sequence variables, see Planning a Task Sequence Strategy in Configuration Manager (https://go.microsoft.com/fwlink/p/?LinkID=260806) on TechNet.
パラメーター
-Collection<IResultObject>
Specifies a Configuration Manager user collection object. To obtain a user collection object, use the Get-CMUserCollection cmdlet.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-CollectionId<String>
Specifies the ID of the device collection.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-CollectionName<String>
Specifies the name of the device collection.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-VariableName<String>
Specifies the name of the variable. If you do not specify this parameter, the cmdlet returns all the variables for the collection.
エイリアス |
なし |
必須? |
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 task sequence variables for all device collections
This command gets the task sequence variables for all device collections.
PS C:\> Get-CMDeviceCollectionVariable -CollectionName "" -VariableName ""
関連トピック
Set-CMDeviceCollectionVariable
New-CMDeviceCollectionVariable