Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Fail if step is executed so package deployment will retry

I working on a scheduled update process that uses PSWIndows update to check WSUS, install, and reboot. This package has three steps:

  1. this step reboots the host on the condition of it being in the "Reboot Required" dynamic group in PDQ Inventory.
  2. this step installs the PSWindows Update module if it isn't already installed
  3. this step makes sure the host is pointed to WSUS and then checks for updates, installs them, and reboots.

What I'd like to do is fail the package deployment if step 1 is executed and the server is rebooted so that it can retry the deployment when it's back online. This way, I can be sure that all servers are updated even if the server needed to be rebooted first for some reason. Is there a way to have the package fail if a step is run?

0

Comments

3 comments
Date Votes
  • Can I use the Reboot step with the condition that it's a member of reboot required? Will the package then attempt to run the next steps after the server is back online?

    0
  • Yes, the Reboot Step waits for the target to come back online, then continues with the next Step.

    https://documentation.pdq.com/PDQDeploy/19.1.96.0/reboot-step.htm

    0
  • Thanks for responding! I tested it out on Friday and it worked like a charm. 

    0