Remove-CMDeviceCollectionVariable
Remove-CMDeviceCollectionVariable
Removes a task sequence variable that is associated with a device collection in the Configuration Manager hierarchy.
構文
Parameter Set: SearchByIdMandatory
Remove-CMDeviceCollectionVariable -CollectionId <String> -VariableName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByNameMandatory
Remove-CMDeviceCollectionVariable -CollectionName <String> -VariableName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByValueMandatory
Remove-CMDeviceCollectionVariable -Collection <IResultObject> -VariableName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Remove-CMDeviceCollectionVariable cmdlet removes a task sequence variable that is associated with the specified device collection in Microsoft System Center 2012 Configuration Manager.
These variables are used by task sequences that are deployed to the collection.
パラメーター
-Collection<IResultObject>
Specifies an object that represents the device collection associated with variable.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-CollectionId<String>
Specifies the ID of a device collection.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-CollectionName<String>
Specifies the name of a device collection.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Force
Performs the action without a confirmation message.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-VariableName<String>
Specifies the name of the task sequence variable to remove.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Remove a task sequence variable from a device collection
This command removes a task sequence variable named New_ComputerName that is associated with a device collection named All Unknown Devices.
PS C:\> Remove-CMDeviceCollectionVariable -CollectionName "All Unknown Devices" -VariableName "New_ComputerName"
関連トピック
Get-CMDeviceCollectionVariable