Get-WssBackupTarget

Get-WssBackupTarget

Retrieves all backup targets from a scheduled backup policy.

Syntax

Parameter Set: Default
Get-WssBackupTarget [-BackupPolicy] <ScheduledBackupPolicy> [ <CommonParameters>]

Detailed Description

The Get-WssBackupTarget cmdlet retrieves all backup targets from a scheduled backup policy. A scheduled backup policy is a backup file specification that has a backup schedule associated with it.

Parameters

-BackupPolicy<ScheduledBackupPolicy>

Specifies the scheduled backup policy from which to retrieve the backup target.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

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

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Get all backup targets from a scheduled backup policy

This command gets all backup targets from the backup policy that is stored in the variable named $ContosoBUPolicy213.

PS C:\> Get-WssBackupTarget -BackupPolicy $ContosoBUPolicy213 

Add-WssBackupTarget

New-WssBackupTarget

Remove-WssBackupTarget