New-WBPolicy

Windows Server 2012 R2 and Windows 8.1

New-WBPolicy

Creates a backup policy object.

구문


New-WBPolicy [ <CommonParameters>]




자세한 설명

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.

매개 변수

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(http://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

  • None

    None


출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

  • WBPolicy

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


예제

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

관련 항목

커뮤니티 추가 항목

추가
표시: