Remove-CMBoundary
Remove-CMBoundary
Removes a boundary.
構文
Parameter Set: SearchByIdMandatory
Remove-CMBoundary -Id <String[]> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByNameMandatory
Remove-CMBoundary -Name <String[]> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchByValueMandatory
Remove-CMBoundary -InputObject <IResultObject> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Remove-CMBoundary cmdlet removes a boundary from Microsoft System Center 2012 Configuration Manager.
In System Center 2012 Configuration Manager, a boundary is an intranet location that contains one or more devices that you can manage. A boundary can be an IP subnet, Active Directory site name, IPv6 prefix, or an IP address range.
パラメーター
-Force
Performs the action without a confirmation message.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Id<String[]>
Specifies an array of boundary identifiers (IDs).
エイリアス |
BoundaryId |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-InputObject<IResultObject>
Specifies an input object to this cmdlet. You can get the input object by using the Get-CMBoundary cmdlet.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Name<String[]>
Specifies an array of boundary names.
エイリアス |
DisplayName |
必須? |
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 boundary that is specified by its ID
This command removes the boundary that has an identifier of 16777223. Because the Force parameter is not specified, you must confirm the action before it is performed.
PS C:\> Remove-CMBoundary -Id "16777223"
Example 2: Remove a boundary by using an InputObject
In this example, the first command uses the Get-CMBoundary cmdlet to get a boundary that has the ID of 16777223, and inserts it into the input object $BoundaryObj.
The second command identifies the boundary by using the input object $BoundaryObj and then removes the boundary. Because the Force parameter is not specified, you must confirm the action before it is performed.
PS C:\> $BoundaryObj = Get-CMBoundary -Id "16777223"
PS C:\> Remove-Boundary -InputObject $BoundaryObj