New-WBPolicy
New-WBPolicy
Creates a backup policy object.
Sintaxis
New-WBPolicy [ <CommonParameters>]
Descripción detallada
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.
Parámetros
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
None
None
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
WBPolicy
The New-WBPolicy object generates an empty WBPolicy object in edit mode.
Ejemplos
Example 1: Create a backup policy
This command creates an empty WBPolicy object and saves it in the $Policy variable. Use the WBPolicy object to specify the settings for backup.
PS C:\> $Policy = New-WBPolicy