Prevent Windows 7 from sleeping: Task Sequence Step
So we can perform some work at night after the migration, we needed to block 7 from sleeping (Which is its default setting). To do this, we tell the task sequence to set the active power state as High Performance using the powercfg tool. You can always fix this down the road for energy conservation, but that’s what we’re all waiting on R3 for, right?
powercfg.exe -setactive 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
Where the present GUID is the GUID of the power state. In this case, that is the High Performance power state.
Advertisement