Skip to content

Latest commit

 

History

History
66 lines (43 loc) · 1.86 KB

File metadata and controls

66 lines (43 loc) · 1.86 KB
external help file Module Name ms.date online version schema title
wsbcmdlet.dll-Help.xml
WindowsServerBackup
10/30/2017
2.0.0
New-WBPolicy

New-WBPolicy

SYNOPSIS

Creates a backup policy object.

SYNTAX

New-WBPolicy [<CommonParameters>]

DESCRIPTION

The New-WBPolicy cmdlet creates a backup policy object. The new backup policy object does not contain information about the volumes included in the policy, the files in the backup, the backup target, or any scheduled times.

To make a new policy for scheduled backups, use the Set-WBPolicy cmdlet to define what items to include or exclude in backups, when to run backups, and where to store backups. To make a one-time backup from policy settings, use the Start-WBBackup cmdlet.

To use this cmdlet, you must be a member of the Administrators group or Backup Operators group.

EXAMPLES

Example 1: Create a backup policy

PS C:\> $Policy = New-WBPolicy

This command creates an empty WBPolicy object and saves it in the $Policy variable. Use the WBPolicy object to specify the settings for backup.

PARAMETERS

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

None

None

OUTPUTS

WBPolicy

The New-WBPolicy object generates an empty WBPolicy object in edit mode.

NOTES

RELATED LINKS

Get-WBPolicy

Remove-WBPolicy

Set-WBPolicy

Start-WBBackup