Set-CMBoundary

Modifies boundary settings.

Syntax

Set-CMBoundary
   [-Confirm]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   -Id <String>
   [-NewName <String>]
   [-PassThru]
   [-Type <BoundaryTypes>]
   [-Value <String>]
   [-WhatIf]
   [<CommonParameters>]
Set-CMBoundary [-Confirm] [-DisableWildcardHandling] [-ForceWildcardHandling] -InputObject 
 [-NewName ] [-PassThru] [-Type ] [-Value ] [-WhatIf] []
Set-CMBoundary [-Confirm] [-DisableWildcardHandling] [-ForceWildcardHandling] -Name 
 [-NewName ] [-PassThru] [-Type ] [-Value ] [-WhatIf] []

Description

The Set-CMBoundary cmdlet modifies boundary settings.

In Microsoft System Center 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.

Examples

Example 1: Rename a boundary

PS C:\> Set-CMBoundary -Name "Default-ADSite" -NewName "ADSiteBoundary01"

This command changes a boundary name from Default-ADSite to ADSiteBoundary01.

Example 2: Modify the value of a boundary by using an InputObject

PS C:\> $BoundaryObj = Get-CMBoundary -Id "16777217"
PS C:\> Set-CMBoundary -InputObject $BoundaryObj -Value "IPSubnet17"

In this example, the first command gets a boundary that has the ID of 16777217 and inserts it into the input object $BoundaryObj.

The second command identifies the boundary by using the input object $BoundaryObj and modifies its value to IPSubnet17.

Required Parameters

-Id

Specifies an array of boundary identifiers (IDs).

Type:String
Aliases:BoundaryId
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Specifies an input object to this cmdlet. You can get the input object by using the Get-CMBoundary cmdlet.

Type:IResultObject
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies an array of boundary names.

Type:String
Aliases:DisplayName
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-NewName

Specifies a new name for a boundary.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Type

Specifies a boundary type. Valid values are: ADSite, IPV6Prefix, IPSubnet, and IPRange.

Type:BoundaryTypes
Aliases:BoundaryType
Parameter Sets:IPSubnet, ADSite, IPV6Prefix, IPRange
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Value

Specifies the data that describes the boundary. For example, an Active Directory site value can be Default-ADSite.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

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

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False