Command Prompt
1. Open an elevated Command Prompt:
· Search for “cmd” in the Start menu.
· Right-click on “Command Prompt” and select “Run as Administrator”.
Disable hibernation:
powercfg.exe /hibernate off
Disable all sleep states (including standby):
powercfg -change -standby-timeout-ac 0
powercfg -change -standby-timeout-dc 0
PowerShell
2. Open an elevated PowerShell window:
· Search for “PowerShell” in the Start menu.
· Right-click on “Windows PowerShell” and select “Run as Administrator”.
3. Disable hibernation:
PowerShell
Powercfg -Hibernate Off
4.
5. Disable all sleep states (including standby):
PowerShell
Powercfg -Change -Standby-Timeout-AC 0
6. Powercfg -Change -Standby-Timeout-DC 0
7.
Key Points:
· AC vs. DC: The “-ac” and “-dc” options in the powercfg command distinguish between when the computer is plugged in (AC power) and when it’s running on battery (DC power).
· Permanent change: These commands will permanently disable sleep and hibernation until you re-enable them.
· Elevated permissions: You need to run Command Prompt or PowerShell as an administrator for these commands to work.
To Re-Enable Sleep and Hibernation
· To re-enable hibernation, use:
· powercfg.exe /hibernate on (Command Prompt)
· Powercfg -Hibernate On (PowerShell)
· To set specific timeouts for sleep modes, use the powercfg command with the desired timeouts in seconds.
Let me know if you’d like help customizing your timeout settings!