Delen via


Remove-OBFileSpec

Removes the list of items to include or exclude from a backup, as specified by the OBFileSpec object, from a backup policy (OBPolicy) object.

Syntaxis

Default (Standaard)

Remove-OBFileSpec
    [-Policy] <CBPolicy>
    [-FileSpec] <CBFileSpec[]>
    [-Confirm]
    [-WhatIf]

Description

The Remove-OBFileSpec cmdlet removes the list of items to include or exclude from a backup, as specified by the OBFileSpec object, from a backup policy (OBPolicy object). After making changes to the policy object, Set-OBPolicy must be called to set this policy as the current one.

This cmdlet supports WhatIf and Confirm parameters with a medium impact. The medium impact signifies that the cmdlet will not prompt the user by default. The WhatIf parameter gives a verbose description of what the cmdlet does. The Confirm parameter specifies whether the cmdlet should prompt the user. Using -Confirm:$FALSE will override the prompt.

.

To use Microsoft Azure Backup cmdlets, the user needs to be an administrator on the protected machine.

Voorbeelden

EXAMPLE 1

$policy = Get-OBPolicy



Get-OBFileSpec -Policy $policy | Remove-OBFileSpec -Policy $policy

This example removes an existing file specification.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parametereigenschappen

Type:SwitchParameter
Default value:False
Ondersteunt jokertekens:False
DontShow:False

Parametersets

(All)
Position:Named
Verplicht:False
Waarde uit pijplijn:False
Waarde uit pijplijn op eigenschapsnaam:False
Waarde van resterende argumenten:False

-FileSpec

Specifies the items to remove from the OBPolicy object.

Parametereigenschappen

Type:

CBFileSpec[]

Default value:None
Ondersteunt jokertekens:False
DontShow:False

Parametersets

(All)
Position:3
Verplicht:True
Waarde uit pijplijn:True
Waarde uit pijplijn op eigenschapsnaam:False
Waarde van resterende argumenten:False

-Policy

Specifies the policy from which the file specification should be deleted.

Parametereigenschappen

Type:CBPolicy
Default value:None
Ondersteunt jokertekens:False
DontShow:False

Parametersets

(All)
Position:2
Verplicht:True
Waarde uit pijplijn:True
Waarde uit pijplijn op eigenschapsnaam:False
Waarde van resterende argumenten:False

-WhatIf

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

Parametereigenschappen

Type:SwitchParameter
Default value:False
Ondersteunt jokertekens:False
DontShow:False

Parametersets

(All)
Position:Named
Verplicht:False
Waarde uit pijplijn:False
Waarde uit pijplijn op eigenschapsnaam:False
Waarde van resterende argumenten:False

Invoerwaarden

None

Uitvoerwaarden

Microsoft.Internal.CloudBackup.Commands.OBPolicy