Computers going to sleep after Re-Imaging
Description of the issue:
After the SCCM task sequence runs, the computer will get policies, updates, software etc based on the rules in SCCM. We have seen some cases where computers have gone to sleep before getting their power policies thus never getting updates, software, etc. This shouldn't happen anymore but if it comes up, you can either disable sleep mode in the control panel or with the following command prompt which will be faster to use PowerShell to batch this - creating a variable with computer names and using Invoke-Command with this seems to work well.
powercfg -x -standby-timeout-ac 0
This will be overwritten when SCCM gives the computer a power policy but this will prevent the computer from going to sleep if it's plugged into AC power. Laptops should never be imaged without AC power as they are unlikely to be compliant before they ran out of battery power.
Task sequence edit:
Add into the task sequnce to run the following code after installing the SCCM client and before installing Windows applications to ensure the computer doesn't go to sleep.
cmd.exe /c powercfg -x -standby-timeout-ac 0