how to stop computer from sleeping Reading Time: 4 minutes

When you’re deep into work, running a security scan, or downloading large files, the last thing you want is your system suddenly going to sleep. If you’ve ever wondered how to stop your computer from sleeping, you’re not alone. From IT managers to cybersecurity professionals, maintaining continuous system uptime is essential for operational efficiency. Sleep mode can interrupt automated tasks, break remote connections, and derail productivity—especially in enterprise environments.

The good news? Preventing your computer from sleeping is easy when you understand the right settings and tools. In this comprehensive guide, we’ll walk through every method available in Windows 10 and Windows 11 to ensure your device stays awake exactly when you need it to.

Understanding Why Computers Enter Sleep Mode

Computers are designed to save power automatically, and sleep mode helps preserve battery life, reduce heat, and maintain system longevity. However, depending on your workload, sleep mode may become a problem—especially if you’re:

  • Running scheduled cybersecurity scans
  • Conducting remote sessions
  • Performing overnight data backups
  • Rendering video or monitoring systems
  • Managing enterprise-level applications or endpoints

Knowing why the system sleeps helps you apply the right fixes.

Using Windows Power Settings to Disable Sleep

The primary way users control sleep behavior is through Windows Power Settings, where you can adjust or turn off sleep timers.

Steps to Prevent Sleep on Windows 10 & 11

  1. Open Settings
  2. Select System
  3. Choose Power & battery (Windows 11) or Power & Sleep (Windows 10)
  4. Under Screen and Sleep, adjust the following:
    • When plugged in, put my device to sleep → choose Never
    • On battery power, put my device to sleep → set a longer time or Never

Setting both options to Never ensures your system stays awake indefinitely.

Adjusting Advanced Power Settings for Complete Control

Beyond basic settings, Windows includes advanced power options to prevent sleep triggers at the system level.

Steps to Modify Advanced Settings

  1. Open Control Panel
  2. Go to Power Options
  3. Select Change plan settings next to your current plan
  4. Click Change advanced power settings
  5. Expand:
    • Sleep → set timers to 0 or Never
    • Hard disk → prevent drive shutdown
    • USB settings → disable selective suspend
    • Processor Power Management → ensure high performance

These granular controls help prevent sleep caused by hardware or power policies.

Changing Lock Screen and Display Timeout Settings

Sometimes the display turns off or the session locks even when the PC doesn’t sleep. This can interrupt active tasks.

To Fix Display Timeout:

  1. Go to Settings → System → Power & battery
  2. Adjust Screen timeout settings
  3. Set them to Never or a high value

This ensures your display stays active as long as needed.

Preventing Sleep Using Command Prompt or PowerShell

IT professionals often prefer command-line options for faster configurations across multiple devices.

Disable Sleep with Command Prompt

Use:

powercfg -change standby-timeout-ac 0
powercfg -change standby-timeout-dc 0

These commands disable sleep mode for both AC and battery usage.

PowerShell Alternative

powercfg /SETACVALUEINDEX SCHEME_CURRENT SUB_SLEEP STANDBYIDLE 0
powercfg /SETACTIVE SCHEME_CURRENT

This offers full programmatic control for enterprise workflows.

Using Task Scheduler to Block Sleep for Specific Tasks

If you only want to keep the system awake during certain processes—for example, a nightly security audit—you can configure Windows Task Scheduler.

Steps:

  1. Open Task Scheduler
  2. Select your task
  3. Go to Conditions
  4. Check Prevent the computer from sleeping when this task is running

This ensures sleep never interrupts critical operations.

Using Background Apps and Activity to Prevent Sleep

Windows sometimes sleeps even when apps run in the background. You can stop this by configuring background permissions.

To Manage Background Activity:

  1. Go to Settings → Apps → Installed apps
  2. Select an app
  3. Set Background permissions to Always

This is especially helpful for:

  • Monitoring software
  • Remote access tools
  • Security applications

Setting Your Power Plan to High Performance

Windows includes multiple power profiles, and choosing the right one affects sleep behavior.

Steps:

  1. Open Control Panel
  2. Go to Power Options
  3. Select High performance or Ultimate performance (Windows 11 Pro/Enterprise)

These plans reduce or eliminate automatic power-saving triggers.

Using Manufacturer Tools to Override Sleep Mode

Some PCs include proprietary software that controls sleep independently of Windows.

Examples include:

  • HP Power Manager
  • Dell Power Manager
  • Lenovo Vantage
  • ASUS Armoury Crate

If your computer keeps sleeping despite system changes, the manufacturer’s tool may be overriding your settings.

Preventing Sleep While Running Programs

Some apps prevent sleep automatically:

  • Zoom
  • VLC media player
  • Remote Desktop
  • Video rendering tools

But others do not. To force Windows to stay awake while a program runs, use:

powercfg /requests

Then override requests with:

powercfg /requestsoverride

This ensures no app triggers sleep unexpectedly.

Tools to Keep Your Computer Awake Automatically

Several third-party tools are trusted in IT and cybersecurity environments for preventing unwanted sleep:

  • Caffeine
  • Amphetamine (Windows version)
  • Don’t Sleep
  • NoSleep

These tools simulate user activity or lock system power settings.

Fixing Sleep Mode Issues Caused by System Policies

On managed devices (especially in enterprises), Group Policy may override your power settings.

To Check:

  1. Press Win + R, type gpedit.msc
  2. Navigate:
    Computer Configuration → Administrative Templates → System → Power Management
  3. Look for enforced policies related to:
    • Sleep timers
    • Hibernate
    • Power plans

Your administrator may need to adjust these policies.

Preventing Sleep During File Downloads or Updates

If the PC goes to sleep during large downloads, the download may fail or restart.

Solutions:

  • Use a dedicated download manager
  • Keep your browser active
  • Adjust sleep and display timers
  • Use powercfg to override automatic sleep

This is especially important for cybersecurity teams downloading OS images or large datasets.

Stopping Laptops from Sleeping When Closing the Lid

For users who rely on external monitors or docking stations, lid behavior is crucial.

To Change Lid Close Action:

  1. Open Control Panel → Power Options
  2. Select Choose what closing the lid does
  3. Set it to Do nothing under both On battery and Plugged in

This prevents unintended sleep when you close your laptop.

FAQs

1. Why does my computer keep sleeping even after I changed settings?

Some OEM power managers or Group Policy rules may override system settings. Check for manufacturer software and enterprise policies.

2. Is it safe to disable sleep mode entirely?

Yes, but be aware that it increases energy usage and may reduce laptop battery life.

3. How do I stop sleep during long downloads or scans?

Set sleep to Never, use powercfg overrides, or use an app like Caffeine to force activity.

4. Will my computer overheat if it stays awake?

Not usually—modern systems are designed to regulate temperature. Still, ensure proper ventilation.

5. Can malware cause sleep issues?

Yes. Some malware changes power settings to disrupt monitoring tools. Always scan for threats.

Final Thoughts

Preventing your computer from sleeping is essential whether you’re monitoring critical systems, running large-scale cyber operations, or simply wanting uninterrupted productivity. With the right Windows settings, power configurations, and system tweaks, you can ensure your device stays active exactly when you need it most.

Start your free trial now and enhance your operations with Comodo’s advanced endpoint management and device hygiene platform, giving you visibility and control over app behavior across your organization.

START FREE TRIAL GET YOUR INSTANT SECURITY SCORECARD FOR FREE