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.
Can someone help me make this so that:
I also would appreciate knowing how to revert the setting changes I made at the end of my script
Thanks!
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.
Code:
control powercfg.cpl -monitor-timeout-ac 30
control powercfg.cpl -monitor-timeout-dc 30
control powercfg.cpl /hibernate off
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.
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!
My Computer
At a glance
Windows 7 32 BitPentium Duo Core2GB
- Computer Manufacturer/Model Number
- Lenovo M58
- OS
- Windows 7 32 Bit
- CPU
- Pentium Duo Core
- Memory
- 2GB
- Sound Card
- SoundMax Integrated Digital HD