Remove-WssBackupVolume
Remove-WssBackupVolume
Removes a backup volume from a scheduled backup policy.
Syntax
Parameter Set: Default
Remove-WssBackupVolume [-BackupPolicy] <ScheduledBackupPolicy> [-BackupVolume] <BackupVolume> [ <CommonParameters>]
Detailed Description
The Remove-WssBackupVolume cmdlet removes a backup volume from a scheduled backup policy. When you remove a backup volume from a scheduled backup policy, backups that use the policy no longer back up the volume.
Parameters
-BackupPolicy<ScheduledBackupPolicy>
Specifies the scheduled backup policy from which to remove the backup volume.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-BackupVolume<BackupVolume>
Specifies the backup volume to remove from the scheduled backup policy.
Aliases |
none |
Required? |
true |
Position? |
2 |
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: Remove a backup volume from a scheduled backup policy
This command removes the backup volume that is stored in the variable named $ContosoBUVol50 from the scheduled backup policy that is stored in the variable named $ContosoBUPolicy215.
PS C:\> Remove-WssBackupVolume -BackupPolicy $ContosoBUPolicy215 -BackupVolume $ContosoBUVol50