Dela via


Remove-CMBoundaryFromGroup

SYNOPSIS

Tar bort Konfigurationshanteraren gräns från en gränsgrupp.

SYNTAX

RemoveBoundaryFromGroupById_Id (standard)

Remove-CMBoundaryFromGroup -BoundaryGroupId <Int32> -BoundaryId <Int32> [-Force] [-DisableWildcardHandling]
 [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]

RemoveBoundaryFromGroupByName_Id

Remove-CMBoundaryFromGroup -BoundaryGroupId <Int32> -BoundaryName <String> [-Force] [-DisableWildcardHandling]
 [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]

RemoveBoundaryFromGroupByObject_Id

Remove-CMBoundaryFromGroup -BoundaryGroupId <Int32> -BoundaryInputObject <IResultObject> [-Force]
 [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]

RemoveBoundaryFromGroupById_Object

Remove-CMBoundaryFromGroup -BoundaryGroupInputObject <IResultObject> -BoundaryId <Int32> [-Force]
 [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]

RemoveBoundaryFromGroupByName_Object

Remove-CMBoundaryFromGroup -BoundaryGroupInputObject <IResultObject> -BoundaryName <String> [-Force]
 [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]

RemoveBoundaryFromGroupByObject_Object

Remove-CMBoundaryFromGroup -BoundaryGroupInputObject <IResultObject> -BoundaryInputObject <IResultObject>
 [-Force] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]

RemoveBoundaryFromGroupById_Name

Remove-CMBoundaryFromGroup -BoundaryGroupName <String> -BoundaryId <Int32> [-Force] [-DisableWildcardHandling]
 [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]

RemoveBoundaryFromGroupByName_Name

Remove-CMBoundaryFromGroup -BoundaryGroupName <String> -BoundaryName <String> [-Force]
 [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]

RemoveBoundaryFromGroupByObject_Name

Remove-CMBoundaryFromGroup -BoundaryGroupName <String> -BoundaryInputObject <IResultObject> [-Force]
 [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Cmdleten Remove-CMBoundaryFromGroup tar Konfigurationshanteraren en gräns från en gränsgrupp. En gräns är ett nätverksadressintervall, undernät eller En Active Directory-plats som identifierar en grupp datorer som är nära i nätverket. En gränsgrupp är en samling gränser.

Anteckning

Kör Konfigurationshanteraren cmdlets från Konfigurationshanteraren platsenheten, till exempel PS XYZ:\> . Mer information finns i Komma igång.

EXAMPLES

Exempel 1: Ta bort en gräns från en grupp med hjälp av gränsnamnet

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

Det här exemplet tar bort en gräns med namnet CLBound03 från en gränsgrupp som har ID:t 16777219.

Exempel 2: Ta bort flera gränsgrupper med hjälp av ett InputObject

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

Det första kommandot använder cmdleten Get-CMBoundary för att hämta flera gränser som anges av deras namn och lagrar dessa data i $BoundaryObj variabeln.

Det andra kommandot identifierar och tar bort de gränser som anges med hjälp av det indataobjekt som $BoundaryObj. Eftersom force-parametern inte har angetts måste du bekräfta åtgärden innan den utförs.

PARAMETERS

-BoundaryGroupId

Anger ett ID för gränsgruppen som du tar bort en gräns från.

Type: Int32
Parameter Sets: RemoveBoundaryFromGroupById_Id, RemoveBoundaryFromGroupByName_Id, RemoveBoundaryFromGroupByObject_Id
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-BoundaryGroupInputObject

Type: IResultObject
Parameter Sets: RemoveBoundaryFromGroupById_Object, RemoveBoundaryFromGroupByName_Object, RemoveBoundaryFromGroupByObject_Object
Aliases: BoundaryGroup

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-BoundaryGroupName

Anger ett namn för gränsgruppen som du tar bort en gräns från.

Type: String
Parameter Sets: RemoveBoundaryFromGroupById_Name, RemoveBoundaryFromGroupByName_Name, RemoveBoundaryFromGroupByObject_Name
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-BoundaryId

Anger ett ID för gränsen som denna cmdlet tar bort.

Type: Int32
Parameter Sets: RemoveBoundaryFromGroupById_Id, RemoveBoundaryFromGroupById_Object, RemoveBoundaryFromGroupById_Name
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-BoundaryInputObject

Type: IResultObject
Parameter Sets: RemoveBoundaryFromGroupByObject_Id, RemoveBoundaryFromGroupByObject_Object, RemoveBoundaryFromGroupByObject_Name
Aliases: Boundary

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-BoundaryName

Anger ett namn för gränsen som denna cmdlet tar bort.

Type: String
Parameter Sets: RemoveBoundaryFromGroupByName_Id, RemoveBoundaryFromGroupByName_Object, RemoveBoundaryFromGroupByName_Name
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

Uppmanar dig att bekräfta innan du kör cmdleten.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-DisableWildcardHandling

Den här parametern behandlar jokertecken som värden för literaltecken. Du kan inte kombinera den med ForceWildcardHandling.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-Force

Tvingar kommandot att köras utan att be om användarbekräftelse.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-ForceWildcardHandling

Den här parametern bearbetar jokertecken och kan leda till oväntat beteende (rekommenderas inte). Du kan inte kombinera den med DisableWildcardHandling.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-WhatIf

Visar vad som skulle hända om cmdleten kördes. Cmdleten körs inte.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

Denna cmdlet har stöd för parametrarna -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction och -WarningVariable. Mer information finns i about_CommonParameters.

INPUTS

Ingen

OUTPUTS

ANTECKNINGAR

Add-CMBoundaryToGroup

Get-CMBoundary

Get-CMBoundaryGroup

New-CMBoundary

New-CMBoundaryGroup

Remove-CMBoundary

Remove-CMBoundaryGroup

Set-CMBoundaryGroup