I working on a scheduled update process that uses PSWIndows update to check WSUS, install, and reboot. This package has three steps:
- this step reboots the host on the condition of it being in the "Reboot Required" dynamic group in PDQ Inventory.
- this step installs the PSWindows Update module if it isn't already installed
- 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?
Please sign in to leave a comment.