Windows - Not Set Standby & Hibernate

Environment
  • Microsoft Windows XP
Introduction
Want to set the computer not to be set standby and hibernate in normal

Solutions
Run Powercfg to set the power management
powercfg.exe /change "Always On" /disk-timeout-ac 30 /disk-timeout-dc-15 /monitor-timeout-ac 15 /monitor-timeout-dc 5 /standby-timeout-ac 0 /standby-timeout-dc 0

powercfg.exe /hibernate off

powercfg.exe /setactive "Always On"
Wanna run this in hidden, so run hstart.exe
hstart.exe /noconsole Powercfg.bat

Last, set it via registry for all users account
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\hstart.exe /noconsole Powercfg.bat

References