Get-WssBackupTarget
Get-WssBackupTarget
Retrieves all backup targets from a scheduled backup policy.
Sintaxis
Parameter Set: Default
Get-WssBackupTarget [-BackupPolicy] <ScheduledBackupPolicy> [ <CommonParameters>]
Descripción detallada
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.
Parámetros
-BackupPolicy<ScheduledBackupPolicy>
Specifies the scheduled backup policy from which to retrieve the backup target.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.BackupTarget
This cmdlet returns a list of backup targets.
Ejemplos
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