Open Settings > System > Power & sleep (or Settings > System > Power on newer versions) and set Sleep to Never for both “On battery” and “Plugged in.” This takes about two minutes and needs no extra software. The exact menu names can vary slightly by Windows version, but the path is always under System in Settings.
Change Sleep Settings
The most direct way to stop sleep mode is through the built-in power settings. You can change when your PC sleeps, or turn sleep off entirely.
- Press Windows key + I to open Settings.
- Select System, then Power & sleep (or Power on some versions).
- Under Sleep, click the drop-down menus and choose Never for both “On battery” and “Plugged in.” If you only use a desktop, you may see only one option.
- Close Settings. The change applies immediately.
If you want your screen to turn off but the PC to stay awake, leave the Screen settings as they are and only change Sleep. This saves power while keeping downloads and background tasks running.
Adjust Power Plan Options
Sometimes the quick settings above are overridden by a custom power plan. Check the advanced power settings to make sure sleep is disabled there too.
- Open Control Panel (search for it in the Start menu).
- Go to Hardware and Sound > Power Options.
- Next to your selected plan, click Change plan settings.
- Click Change advanced power settings.
- In the pop-up window, expand Sleep > Sleep after.
- Set both On battery and Plugged in to Never (or type 0, which means never).
- Click Apply and OK.
Also check Allow hybrid sleep and Hibernate after in the same list. Set them to Never if you want to avoid any low-power state.
Prevent Wake from Sleep
If your PC still goes to sleep despite the settings above, a scheduled task or a device may be waking it. You can stop that with a simple command.
- Right-click the Start button and select Windows Terminal (Admin) or Command Prompt (Admin).
- Type
powercfg -change -standby-timeout-ac 0and press Enter. The 0 means never sleep when plugged in. - Type
powercfg -change -standby-timeout-dc 0and press Enter for battery mode (laptops). - Close the window.
This command writes the same setting as the Settings menu but often overrides conflicting policies. If you later want to restore sleep, change the 0 to a number of minutes, like 30.
Stop Automatic Sleep from Apps
Some apps, like media players or download managers, can trigger sleep even when you’ve disabled it. This happens when the app requests the system to allow sleep. To prevent that, you can use the powercfg tool to see what is waking your PC.
- Open Command Prompt (Admin) as above.
- Type
powercfg -lastwaketo see what last woke the PC. - Type
powercfg -devicequery wake_armedto list devices allowed to wake it. - To disable a device from waking the PC, open Device Manager, find the device (like a mouse or network card), right-click it, select Properties, go to the Power Management tab, and uncheck “Allow this device to wake the computer.”
If you’re playing media and the screen goes black, set Screen to Never as well. Some apps don’t prevent screen timeout, only system sleep.
What to Do When Sleep Keeps Turning On
If your PC still sleeps after all these changes, something else is forcing it. Here are the common causes and fixes.
| Symptom | Likely Cause | Fix |
|---|---|---|
| PC sleeps after a few minutes despite “Never” | Power plan override or a scheduled task | Run the powercfg commands in the section above; check Task Scheduler for tasks that set sleep. |
| PC wakes up on its own | Wake timers or network activity | In advanced power settings, expand Sleep > Allow wake timers and set to Disable. |
| Screen turns off but PC stays awake | Screen timeout is separate from sleep | Set Screen to Never in Settings or Control Panel. |
| Sleep option is grayed out | Admin policy or battery saver | Check if your PC is in Battery Saver mode; plug it in or turn off Battery Saver. |
If you’re on a laptop, note that closing the lid may still put it to sleep. To change that, go to Control Panel > Power Options > Choose what closing the lid does and set it to Do nothing.
Keep PC Awake Temporarily
Sometimes you don’t want to change your permanent settings, just keep the PC awake for a long download or presentation. You can use a simple command that lasts until you restart or log off.
- Open Command Prompt (not as admin is fine).
- Type
powercfg /requestsoverride process "explorer.exe" executionand press Enter. This tells Windows not to sleep while Explorer is running, which is always. - To undo, type
powercfg /requestsoverride process "explorer.exe" executionagain.
Alternatively, you can use the powercfg -change -standby-timeout-ac 0 command and then set it back later. For a one-time session, you can also use a free tool like “Caffeine” or “Don’t Sleep,” but the built-in commands work without extra software.
What about a laptop that sleeps when closed?
Go to Control Panel > Power Options > Choose what closing the lid does. Set “On battery” and “Plugged in” to Do nothing. This stops sleep when you close the lid, but the screen will stay off.
Why does my PC still sleep during a movie?
Media players usually prevent sleep while playing, but if they don’t, set Sleep to Never before watching. You can also run the powercfg /requestsoverride command to block sleep for the session.
Is it bad to keep my PC awake all the time?
For a desktop, leaving it on is generally fine, but it uses more electricity and generates heat. For a laptop, keeping it plugged in and awake all the time can reduce battery lifespan over months. If you don’t need it awake, it’s better to let it sleep or shut down.
Related
- Focus Tips for Overthinking: How to Stop the Loop
- How to Stop Rushing Progress and Slow Down
- Why Pottery Cracks When Trimming and How to Stop It
General information for everyday wellbeing, not medical advice. If something affects your health, sleep or mood for more than a short while, talk to a qualified professional. Read more
Spotted an error? Tell us and we will correct it (corrections policy).