Export (0) Print
Expand All

Get-WBBackupTarget

Get-WBBackupTarget

Gets the locations for storing backups that you specified as part of the backup policy (WBPolicy object).

Syntax

Get-WBBackupTarget -Policy <WBPolicy> [<CommonParameters>]

Detailed Description

The Get-WBBackupTarget cmdlet gets the locations for storing backups that you specified as part of the backup policy (WBPolicy object). Valid locations include disks, volumes, or remote shared folders. The locations that you get can be added to the WBPolicy object using the New-WBBackupTarget cmdlet to specify them as backup storage locations.

Parameters

-Policy <WBPolicy>

Specifies the backup policy (WBPolicy object) to display information for.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

true (ByPropertyName)

Position?

named

-CommonParameter

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. For more information, see about_CommonParameters.

Input and Return Types

The input type is the type of the objects that you can pipe to the cmdlet. The return type is the type of the objects that the cmdlet emits.

Notes

  • To view the list of all online disks, use the Get-WBDisk cmdlet.

  • To use Windows Server Backup cmdlets, you must be a member of the Administrators group or Backup Operators group.

Examples

EXAMPLE 1

C:\PS>Get-WBBackupTarget -Policy $policy

A list of backup storage locations configured in the WBPolicy object $policy.

Description

-----------

Gets the list of storage backup locations configured in the WBPolicy object $policy.

See Also

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft