Get-WssBackupTarget

Retrieves all backup targets from a scheduled backup policy.

Syntax

Get-WssBackupTarget
   [-BackupPolicy] <ScheduledBackupPolicy>

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.

Examples

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

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

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

Parameters

-BackupPolicy

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

Type:ScheduledBackupPolicy
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False