Resume-WssBackupPolicy

Resumes a scheduled task that runs a server backup in TaskScheduler.

Syntax

Resume-WssBackupPolicy
      [-BackupPolicy] <ScheduledBackupPolicy>
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Resume-WssBackupPolicy cmdlet resumes a scheduled task that runs a server backup in TaskScheduler.

Examples

Example 1: Resume a server backup

PS C:\>$ContosoBUPolicy25 = Get-WssBackupPolicy
PS C:\> Resume-WssBackupPolicy -BackupPolicy $ContosoBUPolicy215

This example resumes a scheduled task.

The first command gets the backup policy for the computer and stores the result in the $ContosoBUPolicy25 variable

The second command resumes the backup of the backup policy stored in $ContosoBUPolicy215.

Parameters

-BackupPolicy

Specifies the scheduled backup policy to resume.

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Force

Forces the command to run without asking for user confirmation.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.WindowsServerSolutions.DataProtection.ServerBackup.ObjectModel.ScheduledBackupPolicy

This cmdlet generates the BackupPolicy parameter value.