How to Make Your Computer Not Sleep in Windows 10

Windows 10 puts your PC to sleep after a period of inactivity to save power, which is annoying when you’re downloading a big file, rendering a video, running a backup, or using remote access. You can stop sleep entirely, only while plugged in, or just temporarily. This guide covers every option, including what happens when you close a laptop lid and how to fix a PC that sleeps anyway.

Quick Answer

Go to Settings > System > Power & sleep, and under Sleep, set When plugged in, PC goes to sleep after (and On battery power, on laptops) to Never. The screen can still turn off to save power; that doesn’t interrupt what your PC is doing.

Windows 10 Power and sleep settings with the Sleep drop-downs set to Never on battery and when plugged in
Set both Sleep drop-downs to Never. The Screen settings above only turn off the display.

Method 1: Power & Sleep Settings

  1. Press Windows + I and go to System > Power & sleep.
  2. Under Sleep, choose Never for When plugged in.
  3. On a laptop, also set On battery power to Never if you want it to stay awake on battery (this drains the battery faster).
  4. Optionally set the Screen timeouts so the display still turns off.

Method 2: Keep a Laptop Awake With the Lid Closed

  1. Open Control Panel > Hardware and Sound > Power Options.
  2. Click Choose what closing the lid does.
  3. Set When I close the lid to Do nothing for Plugged in (and On battery if needed).
  4. Click Save changes.

Don’t put a running laptop in a bag with the lid closed; it can overheat.

Method 3: Stay Awake Temporarily

  • Microsoft PowerToys Awake: Install free PowerToys from the Microsoft Store and turn on Awake. Choose to keep the PC awake indefinitely or for a set time, then return to normal settings automatically.
  • Presentation settings (laptops): Press Windows + X, choose Mobility Center, and turn on presentation mode where available.

Method 4: Command Line

In an administrator Command Prompt:

  • powercfg /change standby-timeout-ac 0 (never sleep when plugged in)
  • powercfg /change standby-timeout-dc 0 (never sleep on battery)
  • powercfg /change hibernate-timeout-ac 0 (never hibernate when plugged in)

PC Still Goes to Sleep?

  • Check advanced settings: In Power Options > Change plan settings > Change advanced power settings, expand Sleep and set Sleep after, Hibernate after, and System unattended sleep timeout as needed. Also check Hybrid sleep.
  • Different power plan: The plan you edited may not be active. Select the right plan in Power Options.
  • Screen saver lock: A screen saver with “On resume, display logon screen” can look like sleep. Check Settings > Personalization > Lock screen > Screen saver settings.
  • Work PC policies: Your organization may enforce sleep. Contact IT.
  • Manufacturer apps: Some laptops’ power utilities override Windows settings.

Summary

  1. Set Sleep to Never in Settings > System > Power & sleep.
  2. Set the lid action to Do nothing to keep a closed laptop running.
  3. Use PowerToys Awake for temporary stay-awake.
  4. Check advanced power settings if it still sleeps.