Set-WssGlobalClientBackupPolicy
Set-WssGlobalClientBackupPolicy
Changes the global client backup policy.
構文
Parameter Set: NonDefault
Set-WssGlobalClientBackupPolicy [-BackupEndTime <TimeSpan> ] [-BackupStartTime <TimeSpan> ] [-DailyRetainCount <UInt32> ] [-MonthlyRetainCount <UInt32> ] [-WeeklyRetainCount <UInt32> ] [-YearlyRetainCount <UInt32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: Default
Set-WssGlobalClientBackupPolicy [-Default] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Set-WssGlobalClientBackupPolicy cmdlet changes the global client backup policy. This policy includes the following values:
-- BackupStartTime. The beginning of the backup window. The default value is 18:00.
-- BackupEndTime. The end of the backup window. The default value is 9:00.
-- DailyRetainCount. The number of daily backups to keep. The default value is five.
-- WeeklyRetainCount. The number of weekly backups to keep. The default value is four.
-- MonthlyRetainCount. The number of monthly backups to keep. The default value is six.
-- YearlyRetainCount. The number of yearly backups to keep. The default value is ten.
This cmdlet can change any of these values, or you can use the Default parameter to reset all the settings to the default values.
パラメーター
-BackupEndTime<TimeSpan>
Specifies the end of the backup window as a TimeSpan object.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-BackupStartTime<TimeSpan>
Specifies the beginning of the backup window as a TimeSpan object.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-DailyRetainCount<UInt32>
Specifies the number of daily backups to keep. The default value is five.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Default
Indicates that the cmdlet resets all the settings to their default values.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-MonthlyRetainCount<UInt32>
Specifies the number of monthly backups to keep. The default value is six.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WeeklyRetainCount<UInt32>
Specifies the number of weekly backups to keep. The default value is four.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-YearlyRetainCount<UInt32>
Specifies the number of yearly backups to keep. The default value is ten.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Change the backup window for the global policy
This command changes the backup window for the global backup policy. The command specifies new start and end times for the policy.
PS C:\> Set-WssGlobalClientBackupPolicy -BackupEndTime 8:00 -BackupStartTime 19:00
Example 2: Restore default settings for the backup policy
This command restores default settings for the global backup policy. The command includes the Default parameter.
PS C:\> Set-WssGlobalClientBackupPolicy -Default