I want to write a script that will change the power settings for "turn off the display" and "put the computer to sleep" to "never" (see attached screenshot). I know how to set times for the above using:
powercfg -change -monitor-timeout-ac [time]
powercfg -change -monitor-timeout-dc [time]
powercfg -change -standby-timeout-ac [time]
powercfg -change -standby-timeout-dc [time]
but I can't find how to set it to "never".
what is the syntax I need to use?
thank you!