Remove-CMBoundaryFromGroup
從界限群組移除 Configuration Manager 界限。
語法
Remove-CMBoundaryFromGroup
-BoundaryGroupId <Int32>
-BoundaryId <Int32>
[-Force]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-CMBoundaryFromGroup
-BoundaryGroupId <Int32>
-BoundaryName <String>
[-Force]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-CMBoundaryFromGroup
-BoundaryGroupId <Int32>
-BoundaryInputObject <IResultObject>
[-Force]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-CMBoundaryFromGroup
-BoundaryGroupInputObject <IResultObject>
-BoundaryId <Int32>
[-Force]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-CMBoundaryFromGroup
-BoundaryGroupInputObject <IResultObject>
-BoundaryName <String>
[-Force]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-CMBoundaryFromGroup
-BoundaryGroupInputObject <IResultObject>
-BoundaryInputObject <IResultObject>
[-Force]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-CMBoundaryFromGroup
-BoundaryGroupName <String>
-BoundaryId <Int32>
[-Force]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-CMBoundaryFromGroup
-BoundaryGroupName <String>
-BoundaryName <String>
[-Force]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-CMBoundaryFromGroup
-BoundaryGroupName <String>
-BoundaryInputObject <IResultObject>
[-Force]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Remove-CMBoundaryFromGroup Cmdlet 會從界限群組中移除 Configuration Manager 界限。 界限是網路位址範圍、子網或 Active Directory 月臺,可識別網路中靠近的電腦群組。 界限群組是界限的集合。
注意事項
從 Configuration Manager 月臺磁碟驅動器執行 Configuration Manager Cmdlet,例如 PS XYZ:\>
。 如需詳細資訊,請 參閱開始使用。
範例
範例 1:使用界限名稱從群組移除界限
PS XYZ:\> Remove-CMBoundaryFromGroup -BoundaryGroupID "16777219" -BoundaryName "CLBound03"
本範例會從標識碼16777219的界限群組中移除名為 CLBound03 的界限。
範例 2:使用 InputObject 移除多個界限群組
PS XYZ:\> $BoundaryObj = Get-CMBoundary -Name "Bound01", "Bound02", "Bound03"
PS XYZ:\> Remove-CMBoundaryFromGroup -Boundary $BoundaryObj -BoundaryGroupName "BGroup02"
第一個命令會使用 Get-CMBoundary Cmdlet 來取得其名稱所指定的多個界限,並將此數據儲存 到$BoundaryObj 變數中。
第二個命令會識別並移除使用輸入物件 $BoundaryObj指定的界限。 因為未指定 Force 參數,所以您必須在執行動作之前先確認動作。
參數
-BoundaryGroupId
指定要從中移除界限之界限群組的標識碼。
類型: | Int32 |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-BoundaryGroupInputObject
類型: | IResultObject |
別名: | BoundaryGroup |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-BoundaryGroupName
指定要從中移除界限之界限群組的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-BoundaryId
指定此 Cmdlet 移除之界限的識別碼。
類型: | Int32 |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-BoundaryInputObject
類型: | IResultObject |
別名: | Boundary |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-BoundaryName
指定這個 Cmdlet 所移除之界限的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-Confirm
執行 Cmdlet 之前提示您確認。
類型: | SwitchParameter |
別名: | cf |
Position: | Named |
預設值: | False |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DisableWildcardHandling
此參數會將通配符視為常值字元值。 您無法將其與 ForceWildcardHandling 結合。
類型: | SwitchParameter |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Force
強制命令在不要求使用者確認的情況下執行。
類型: | SwitchParameter |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ForceWildcardHandling
此參數會處理通配符,並可能導致非預期的行為 (不建議) 。 您無法將其與 DisableWildcardHandling 結合。
類型: | SwitchParameter |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-WhatIf
顯示執行 Cmdlet 時會發生什麼情況。 Cmdlet 不會執行。
類型: | SwitchParameter |
別名: | wi |
Position: | Named |
預設值: | False |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
None