Remove-CMBoundaryFromGroup

Remove-CMBoundaryFromGroup

Removes a Configuration Manager boundary from a boundary group.

Syntax

Parameter Set: RemoveBoundaryFromGroupById_Id
Remove-CMBoundaryFromGroup -BoundaryGroupId <Int32> -BoundaryId <Int32> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveBoundaryFromGroupById_Name
Remove-CMBoundaryFromGroup -BoundaryGroupName <String> -BoundaryId <Int32> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveBoundaryFromGroupById_Object
Remove-CMBoundaryFromGroup -BoundaryGroup <IResultObject> -BoundaryId <Int32> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveBoundaryFromGroupByName_Id
Remove-CMBoundaryFromGroup -BoundaryGroupId <Int32> -BoundaryName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveBoundaryFromGroupByName_Name
Remove-CMBoundaryFromGroup -BoundaryGroupName <String> -BoundaryName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveBoundaryFromGroupByName_Object
Remove-CMBoundaryFromGroup -BoundaryGroup <IResultObject> -BoundaryName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveBoundaryFromGroupByObject_Id
Remove-CMBoundaryFromGroup -Boundary <IResultObject> -BoundaryGroupId <Int32> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveBoundaryFromGroupByObject_Name
Remove-CMBoundaryFromGroup -Boundary <IResultObject> -BoundaryGroupName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: RemoveBoundaryFromGroupByObject_Object
Remove-CMBoundaryFromGroup -Boundary <IResultObject> -BoundaryGroup <IResultObject> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Remove-CMBoundaryFromGroup cmdlet removes a Microsoft System Center 2012 Configuration Manager boundary from a boundary group. A boundary is a network address range, subnet, or Active Directory site that identifies a group of computers that are close in the network. A boundary group is a collection of boundaries.

Parameters

-Boundary<IResultObject>

Specifies a Configuration Manager boundary object to remove. To obtain a boundary object, use the Get-CMBoundary cmdlet.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-BoundaryGroup<IResultObject>

Specifies a boundary group object for Configuration Manager. Configuration Manager removes the boundary from this boundary group. To obtain a boundary group object, use the Get-CMBoundaryGroup cmdlet.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-BoundaryGroupId<Int32>

Specifies an ID for the boundary group from which you remove a boundary.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-BoundaryGroupName<String>

Specifies a name for the boundary group from which you remove a boundary.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-BoundaryId<Int32>

Specifies an ID for the boundary that you remove.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-BoundaryName<String>

Specifies a name for the boundary that you remove.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Force

Indicates that the cmdlet removes the boundary without prompting you for confirmation. By default, the cmdlet prompts you for confirmation before it proceeds.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Remove a boundary from a group by using the boundary name

This example removes a boundary named CLBound03 from a boundary group that has the ID 16777219.

PS C:\>Remove-CMBoundaryFromGroup –BoundaryGroupID "16777219" -BoundaryName "CLBound03"

Example 2: Remove multiple boundary groups by using an InputObject

This example removes multiple boundaries from a boundary group by using a boundary object variable.

The first command uses the Get-CMBoundary cmdlet to get multiple boundaries that are specified by their names, and stores this data into the $BoundaryObj variable.

The second command identifies and removes the boundaries that are specified by using the input object $BoundaryObj. Because the Force parameter is not specified, you must confirm the action before it is performed.

PS C:\> $BoundaryObj = Get-CMBoundary –Name "Bound01", "Bound02" "Bound03"PS C:\> Remove-CMBoundaryFromGroup –Boundary $BoundaryObj -BoundaryGroupName "BGroup02"

Add-CMBoundaryToGroup

Get-CMBoundary

Get-CMBoundaryGroup

New-CMBoundary

New-CMBoundaryGroup

Remove-CMBoundary

Remove-CMBoundaryGroup

Set-CMBoundaryGroup