Get-WBBackupTarget

Get-WBBackupTarget

Gets backup storage locations that you specified as part of a backup policy.

構文

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

詳細説明

The Get-WBBackupTarget cmdlet gets backup storage locations that you specified for a WBPolicy object that contains a backup policy. Valid locations include disks, volumes, or remote shared folders. To view the list of all online disks, use the Get-WBDisk cmdlet.

You can add the locations that the cmdlet returns to a WBPolicy object by specifying them as backup storage locations to the New-WBBackupTarget cmdlet.

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

パラメーター

-Policy<WBPolicy>

Specifies a backup policy object for which to display information.

エイリアス

InPolicy

必須?

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-WBBackupTarget cmdlet queries the backup policy contained in the specified WBPolicy object.

出力

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

  • WBBackupTarget []

    The Get-WBBackupTarget cmdlet displays a list of the storage locations that the backup policy object contains.

Example 1: Get a list of backup targets

This example gets a list of the storage backup locations from a backup policy.

The first command gets the current backup policy and stores it in a variable named $Policy.

The second command gets the list of storage backup locations from the WBPolicy object that is stored in the $Policy variable.

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

関連トピック

Add-WBBackupTarget

Get-WBDisk

Get-WBPolicy

New-WBBackupTarget

Remove-WBBackupTarget