Export (0) Print
Expand All
Expand Minimize

Remove-CMBoundaryFromGroup

Updated: February 7, 2014

Applies To: System Center 2012 R2 Configuration Manager

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

Performs the action without a confirmation message.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.


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.

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

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"

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft