Get-WBPolicy

Get-WBPolicy

Retrieves the current backup policy for the computer.

構文

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

詳細説明

The Get-WBPolicy cmdlet retrieves the backup policy object for the computer. Use the Editable parameter to return the policy information in edit mode.

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

パラメーター

-Editable

Indicates that the cmdlet returns a current backup policy in edit mode.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • Editable

    This cmdlet uses the Editable parameter to set the WBPolicy object in edit mode.

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • WBPolicy

    This cmdlet displays the WBPolicy object. The cmdlet returns a null value if no backup policy is set.

  • If you use the Editable parameter to make changes, set the updated policy as the current policy by using the Set-WBPolicy cmdlet.

Example 1: Get a current backup policy

This command gets information about the backup policy object. The information includes all the settings for the backup policy, such as what items to back up, when to run backups, and where to store backups.

PS C:\> Get-WBPolicy

Example 2: Get a current backup policy in edit mode

This command gets information about the backup policy object, and it makes the policy editable.

PS C:\> Get-WBPolicy -Editable

関連トピック

New-WBPolicy

Remove-WBPolicy

Set-WBPolicy