Get-WBSchedule

Get-WBSchedule

Retrieves the current schedule for backups.

구문

Parameter Set: Default
Get-WBSchedule [-Policy] <WBPolicy> [ <CommonParameters>]

자세한 설명

The Get-WBSchedule cmdlet retrieves the current schedule for backups in the WBPolicy object. Backups run daily at the times specified in the schedule. To change the schedule, use the Set-WBSchedule cmdlet.

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

매개 변수

-Policy<WBPolicy>

Specifies the WBPolicy object to display.

별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

True (ByPropertyName)

와일드카드 문자 허용 여부

false

<CommonParameters>

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

입력

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

  • WBPolicy

    The Get-WBSchedule cmdlet queries a specified WBPolicy object.

출력

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

  • Datetime []

    The Get-WBSchedule cmdlet displays the list of Datetime objects in the WBPolicy object.

예제

Example 1: Get the scheduled backup times

This example gets the scheduled backup times from the WBPolicy object.

The first command stores the result of the Get-WBPolicy in the variable named $Policy.

The second command gets the backup schedule from the backup policy object.

PS C:\> $Policy = Get-WBPolicy
PS C:\> Get-WBSchedule -Policy $Policy

관련 항목

New-WBPolicy

Set-WBSchedule