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>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
WBPolicy
The Get-WBSchedule cmdlet queries a specified WBPolicy object.
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
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