If you have an aggressive power savings plan, then you may have had issues with deployments failing due to a computer taking a nap mid-installation. Perhaps you have large install files that take a longer time to copy or install. While there are a few different ways to keep computers from going to sleep (GPO settings, WOL packets) let's cover an option for keeping computers awake during a particular deployment.
Meet Don't Sleep. Don't Sleep is a utility you can add to your deployments to keep computers from going to sleep. Run this as a command step before the rest of your package steps.
Create a command step and add the Don't Sleep exe in the Files field.
Add the following command:
Start "" DontSleep -bg enable=1 use_timer=1 set_timer=60
The parameter set_timer is in minutes so feel free to adjust that to whatever time you need a computer to stay on for. Click here to see the full list of parameters provided.
That's it! Add additional steps after the first step to do whatever installation or maintenance your little heart desires. Alternatively, you could take an already existing package and add this step. Just make sure that you click and drag it up to the top so that it runs very first.