Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Restarts failed DPM jobs.
Parameter Set: Default
Restart-DPMJob [-Job] <Job[]> [-Confirm] [-WhatIf] [ <CommonParameters>]
The Restart-DPMJob cmdlet restarts failed System Center 2012 – Data Protection Manager (DPM) jobs.
Specifies an array of job objects.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
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).
The input type is the type of the objects that you can pipe to the cmdlet.
The output type is the type of the objects that the cmdlet emits.
This example restarts the failed jobs for a protection group on the DPM server Contoso-DPMServer.
The first command uses the Get-ProtectionGroup cmdlet to retrieve the protection group, and then stores the result in the variable named $PGroup.
The second command uses the Get-DPMJob cmdlet to retrieve the list of failed jobs for the protection group, and then stores the result in the variable named $Job.
The third command uses the Restart-DPMJob cmdlet to restart the jobs stored in $Job.
PS C:\> $PGroup = Get-ProtectionGroup –DPMServerName "Contoso-DPMServer"
PS C:\> $Job = Get-DPMJob -ProtectionGroup $PGroup -Status $Failed
PS C:\> Restart-DPMJob $Job