Remove-OBPolicy

Remove-OBPolicy

Removes the currently set backup policy (OBPolicy object).

语法

Parameter Set: Default
Remove-OBPolicy [-Policy] <CBPolicy> [[-DeleteBackup]] [-Confirm] [-WhatIf] [ <CommonParameters>]

详细说明

The Remove-OBPolicy cmdlet removes the currently set backup policy (OBPolicy object). This stops the existing scheduled daily backups. If the DeleteBackup parameter is specified, then any data backed up according to this policy on the online backup server is deleted. If the DeleteBackup parameter is not specified, the existing backups are retained in accordance with the retention policy in effect when the backup was created.

This cmdlet supports WhatIf and Confirm parameters with a high impact. The high impact signifies that the cmdlet will prompt the user for confirmation 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.

参数

-DeleteBackup

Specifies that all data backed up on the online backup server associated with this policy should be deleted immediately.

别名

none

是否必需?

false

在哪里?

3

默认值

none

是否接受管道输入?

false

是否接受通配符?

false

-Policy<CBPolicy>

Specifies the policy to be removed.

别名

none

是否必需?

true

在哪里?

2

默认值

none

是否接受管道输入?

True (ByValue)

是否接受通配符?

false

-Confirm

在运行 cmdlet 前提示你进行确认。

是否必需?

false

在哪里?

named

默认值

false

是否接受管道输入?

false

是否接受通配符?

false

-WhatIf

显示在 cmdlet 运行时将发生的情况。该 cmdlet 不运行。

是否必需?

false

在哪里?

named

默认值

false

是否接受管道输入?

false

是否接受通配符?

false

<CommonParameters>

此 cmdlet 支持常见的参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 TechNet 上的 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

输入

输入类型是可以传送到 cmdlet 的对象的类型。

  • None

输出

输出类型是 cmdlet 发出的对象的类型。

  • Microsoft.Internal.CloudBackup.Commands.OBPolicy

示例

EXAMPLE 1

This example deletes an existing policy.

PS C:\> Get-OBPolicy | Remove-OBPolicy

相关主题

Get-OBPolicy