New
#1
Script to change power settings
Greetings,
I am attempting to temporarily disable hibernate and make sure the monitor doesn't go off while I am running a script to complete system configuration.
I believe the code above should work, but what's happening is the control panel applet for power settings is launching when this script runs.Code:control powercfg.cpl -monitor-timeout-ac 30 control powercfg.cpl -monitor-timeout-dc 30 control powercfg.cpl /hibernate off
Can someone help me make this so that:
- The control panel applet doesn't launch
- The settings are only made for the current logged on user
I also would appreciate knowing how to revert the setting changes I made at the end of my script
Thanks!