Get-WBVssBackupOption
Get-WBVssBackupOption
Retrieves a VSS setting from the backup policy.
構文
Parameter Set: Default
Get-WBVssBackupOption [-Policy] <WBPolicy> [ <CommonParameters>]
詳細説明
The Get-WBVSSBackupOptions cmdlet retrieves a setting that determines whether the backups created through the WBPolicy object are Volume Shadow Copy Service (VSS) copy backups or VSS full backups. For more information about VSS copy backups and VSS full backups, or to change this setting, refer to the Set-WBVSSBackupOptions 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 (ByValue) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
WBPolicy
The Get-WBVssBackupOptions cmdlet queries the WBPolicy object.
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
Microsoft.Windows.ServerBackup.Commands.VssBackupOptions
The Get-WBVssBackupOptions cmdlet returns either VssCopyBackup or VssFullBackup, depending on the option specified in the WBPolicy object.
例
Example 1: Get the VSS setting from the backup policy
This example gets the VSS setting, either VssCopyBackup or VssFullBackup.
The first command stores the result ofthe Get-WBPolicy cmdlet in the variable named $Policy.
The second command gets the VSS setting from the variable $Policy.
PS C:\> $Policy = Get-WBPolicy
PS C:\> Get-WBVssBackupOption -Policy $Policy
関連トピック
Set-WBVSSBackupOptions