02-13-2019 10:02 AM
I need to take a group of jobs off hold. I'm looking for a way to do this via PoSH script, but have not yet stumbled across a feature to do this. Do you have any suggestions on how to do this?
I'm not sure how the jobs got put on hold. The Job Engine System Service stopped responding, don't know why. I would like to:
1) query which jobs have been suspended / superceded / are awaiting for the next Full Backup to run first.
2) if appropriate, reactivate the job
Thanks much - Ray
02-13-2019 06:26 PM
You can use Start_BEJob to start the jobs on hold. There is also a BEMCLI cmdlet to query the job status. Off-hand I can't remember the name of the cmdlet.
02-14-2019 12:21 PM
Thanks, you gave me a direction.
Resume-BEJob removes the Hold setting permanently.
To search for a job and remove hold:
Get-BEJob -Name "<name of job; can use wildcards>" | Resume-BEJob
or
Get-BEJob -Status OnHold | Resume-BEJob