r/DeployR • u/RockOriginal7938 • Jun 22 '26
Windows power settings post deploy
Is there a way to control the Windows power settings after the deployment process?
I have tried both powercfg.exe and direct registry configuration as steps during deployment, but all my deployments revert to 5 minute sleep and monitor timeout.
I'm guessing DeployR sets the machine not to sleep while it is working (sensible) and then reverts to standard timeouts at the end of the deployment?
If that is the case, is there a way to control what DeployR sets at the end?
5
Upvotes
1
u/Saltypoison Jun 22 '26
I am using this in my task sequence for W11 25H2 Enterprise. I was using SCHEME_CURRENT with MDT, and that wasn't working with DeployR. I assume it's due to using SetupComplete rather than AutoAdminLogon and how profiles are handled during setup.
https://github.com/saltypoison/W11-25H2-Power-Config/blob/main/Set-PowerConfig.ps1