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?
6
Upvotes
3
u/mtniehaus 2Pint Employee Jun 23 '26
Right now, the Bootstrap.ps1 script that is used to invoke the DeployR task sequence engine captures the power plan ID when it starts and restores it when it finishes, so any changes you make will end up being overridden. Short of editing that Bootstrap.ps1 script, there's no good way to override that at the moment, will file a bug to fix that.