OSD Task Sequence Restart Computer step needs "if reboot pending" option
Please add to the Restart Computer OSD task sequence step an option that will check if the system requires a reboot and then only restart the computer if it needs to. Right now to work around this need, we have to execute a PowerShell script and write the results to a custom task sequence variable and then use that variable as a condition on the Restart Computer step. Adding this option natively would be much more elegant. Attached is the script we're using.
Thanks for the feedback and suggestion as well as the example. Solid idea too.
Updating status to Noted, we’ll update in the future when we’ve tested our proposed solution.
Joseph Crawford commented
This will create a TS Variable called RebootPending and set it to True or False. So run the PowerShell script in one step, and then put the reboot step next with a condition to run it if RebootPending=True
how do you implement this in task sequence ;-)