Script to disable Sleep / Hibernate

  • Has anyone created a script to disable sleep / hibernate? 

  • Just do a 'execute shell script' command in the script to do a "powercfg -h OFF" to disable hibernation. Disabling sleep would be "powercfg -x -standby-timeout-ac nn", where nn is the number of minutes of idle time before it goes to sleep. Zero should be disable, but you may have to look into that.

  • I think it is perfectly explained above, but if you still need help here are the procedures i have exported from my Kaseya. you can import these xml. Please do share if you come up with any advancement to it.