Restart-DPMJob

Restarts failed DPM jobs.

Syntax

Restart-DPMJob
       [-Job] <Job[]>
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]

Description

The Restart-DPMJob cmdlet restarts failed System Center - Data Protection Manager (DPM) jobs.

Examples

Example 1: Restart failed jobs

PS C:\>$PGroup = Get-DPMProtectionGroup -DPMServerName "Contoso-DPMServer"
PS C:\> $Job = Get-DPMJob -ProtectionGroup $PGroup -Status $Failed
PS C:\> Restart-DPMJob -Job $Job

The first command uses the Get-DPMProtectionGroup cmdlet to retrieve the protection group, and then stores that group in the $PGroup variable.

The second command uses the Get-DPMJob cmdlet to retrieve the failed jobs for the protection group, and then stores them in the $Job variable.

The third command restarts the jobs in $Job.

Parameters

-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

-Job

Specifies an array of jobs that this cmdlet restarts. To obtain Job objects, use the Get-DPMJob cmdlet.

Type:Job[]
Position:1
Default value:None
Required:True
Accept pipeline input:True
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