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>]
说明
Remove-CMBoundaryFromGroup cmdlet 从边界组中删除 Configuration Manager 边界。 边界是网络地址范围、子网或 Active Directory 站点,用于标识网络中接近的一组计算机。 边界组是边界的集合。
注意
从 Configuration Manager 站点驱动器运行 Configuration Manager cmdlet,例如 PS XYZ:\>
。 有关详细信息,请参阅 入门。
示例
示例 1:使用边界名称从组中删除边界
PS XYZ:\> Remove-CMBoundaryFromGroup -BoundaryGroupID "16777219" -BoundaryName "CLBound03"
此示例从 ID 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
指定从中删除边界的边界组的 ID。
类型: | 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 删除的边界的 ID。
类型: | 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