sodcalculator

10 Tech How-To

Keep Windows PC Awake Without Touching Mouse

Guide 10-48060 · Updated · Step by step

This guide shows you several reliable ways to keep your Windows PC from sleeping or turning off its display, even when you step away and don’t touch the mouse or keyboard. You’ll learn built-in settings, a simple PowerShell command, and a tiny free utility—no extra hardware needed. Choose the method that fits your workflow and comfort level.

What You’ll Need

  • A Windows 10 or Windows 11 PC
  • Administrator access (for some methods)
  • Optional: a blank text file or a free utility like PowerToys (from Microsoft)

Step-by-Step

  1. Adjust Power Settings (easiest, no extra tools)
    1. Press Windows + I to open Settings.
    2. Go to System > Power & battery (Windows 11) or System > Power & sleep (Windows 10).
    3. Under Screen and Sleep, set both to Never (or a long duration like 5 hours) using the drop-down menus.
    4. If you’re on a laptop, do this for both “On battery” and “Plugged in.”
  2. Change Advanced Power Plan Settings (for more control)
    1. Open Control Panel (search for it in the Start menu).
    2. Go to Hardware and Sound > Power Options.
    3. Next to your active plan, click Change plan settings.
    4. Click Change advanced power settings.
    5. Expand Sleep > Sleep after and set both to Never (0 minutes).
    6. Expand Hard disk > Turn off hard disk after and set it to 0 (meaning never).
    7. Click Apply and OK.
  3. Use a PowerShell Command (quick, temporary)
    1. Right-click the Start button and select Windows PowerShell (Admin) or Terminal (Admin).
    2. Type the following command and press Enter:
      powercfg /change standby-timeout-ac 0
      This sets the sleep timer to “never” when plugged in. For battery, use standby-timeout-dc.
    3. To also prevent the display from turning off, use:
      powercfg /change monitor-timeout-ac 0
    4. These changes persist until you change them back.
  4. Create a “Move Mouse” Script (simulates activity)
    1. Open Notepad.
    2. Paste this small script:
      Set WshShell = WScript.CreateObject("WScript.Shell")
      Do
      WScript.Sleep 60000
      WshShell.SendKeys "{SCROLLLOCK}"
      Loop
    3. Save the file as keepawake.vbs (make sure the “Save as type” is “All Files”).
    4. Double-click the file to run it. It will press the Scroll Lock key every 60 seconds, which prevents sleep without moving your mouse. To stop it, open Task Manager and end the “Windows Script Host” process.
  5. Use Microsoft PowerToys “Awake” (modern, user-friendly)
    1. Download and install PowerToys from the official Microsoft website or the Microsoft Store.
    2. Open PowerToys and select Awake from the left sidebar.
    3. Toggle Enable Awake to On.
    4. Choose Keep awake indefinitely or set a custom duration.
    5. You can also choose whether to keep the screen on or just prevent sleep.
    6. PowerToys runs in the system tray; right-click its icon to quickly toggle Awake on/off.
  6. Temporarily Disable Sleep with a Keyboard Shortcut (for Windows 10/11)
    1. Press Windows + X and select Device Manager.
    2. Expand Mice and other pointing devices.
    3. Right-click your mouse and select Properties.
    4. Go to the Power Management tab and uncheck Allow the computer to turn off this device to save power.
    5. Click OK. This stops the mouse from being put to sleep, but it doesn’t prevent the system from sleeping—use it in combination with the power settings above.

Common Mistakes

  • Only changing the display timeout: The screen can turn off while the PC stays awake, or vice versa. Make sure you set both “Screen” and “Sleep” to your desired values.
  • Forgetting about hybrid sleep: Some systems have “Hybrid sleep” enabled, which can still put the PC into a low-power state even if you set sleep to “Never.” Check the advanced power settings under Sleep and disable it if needed.
  • Using a screensaver that locks the PC: A screensaver can kick in and lock your session, which may appear as if the PC went to sleep. Set the screensaver to “None” or disable the lock screen requirement.
  • Not applying changes to both battery and AC: On laptops, you must set the timers for both “On battery” and “Plugged in” separately.

Tips

  • Use a presentation mode: If you’re giving a presentation, press Windows + P and select Duplicate or Extend. Windows often disables sleep in presentation mode, but this isn’t guaranteed.
  • Create a one-click toggle: Create a desktop shortcut with the target powercfg /change standby-timeout-ac 0 to instantly set sleep to never. Create another with powercfg /change standby-timeout-ac 15 to set it back to 15 minutes.
  • Use a media key: Playing a looping video or audio (even muted) can keep the system awake, but it’s not reliable and uses resources.
  • Check your BIOS/UEFI settings: Some motherboards have their own power management that can override Windows. Look for “ErP” or “Deep Sleep” settings and disable them if you want the PC to stay fully on.

Troubleshooting

  • PC still sleeps after changing settings: Run powercfg -requests in an admin command prompt to see what is preventing sleep or what might be waking it. Also, check if any scheduled tasks are set to wake the PC.
  • PowerToys Awake doesn’t work: Make sure you have the latest version of PowerToys. Also, check if your antivirus is blocking it. Try running PowerToys as administrator.
  • PowerShell command gives an error: Ensure you’re running it as administrator. If you see “Access denied,” right-click the Start button and choose “Terminal (Admin)” or “Windows PowerShell (Admin).”
  • The VBS script doesn’t work: Some systems have script execution disabled. Try renaming the file to .vbs and ensure you saved it as “All Files” not “Text Document.” If it still fails, use the PowerToys method instead.
  • Display still turns off: Some monitors have their own power-saving settings. Check the monitor’s on-screen display (OSD) menu for an “Auto Power Off” or “DPMS” setting and disable it.

Frequently Asked Questions

Will these methods damage my PC?

No. Keeping your PC awake is safe. The only downside is higher electricity usage and more wear on components like fans, but it’s not harmful.

Can I keep my PC awake but turn off the screen?

Yes. Set the “Screen” timeout to a short duration (e.g., 5 minutes) and the “Sleep” timeout to “Never.” The PC stays on, but the display turns off.

Is there a way to keep the PC awake for a specific time only?

Yes. Use PowerToys Awake and set a custom duration, or use the powercfg /change standby-timeout-ac 30 command to set a 30-minute timer, then change it back later.

Do I need to install any software?

No. The built-in Windows settings and PowerShell commands work without extra software. PowerToys is optional and from Microsoft, but not required.

Will these settings affect my laptop’s battery life?

Yes, keeping the PC awake will drain the battery faster. On a laptop, it’s better to set a longer timeout instead of “Never” when on battery.

Can I use a keyboard shortcut to toggle sleep on/off?

You can create a desktop shortcut with the powercfg command and assign a hotkey to it. Right-click the shortcut, select Properties, and set a “Shortcut key” like Ctrl+Alt+K.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →