I know it is possible to disable auto log out from control panel. I want to know is there a way to prevent windows from locking/ sleeping without changing any security options.

4 Answers 4


You can download and run this little program: No Sleep

Get it from here

No Sleep - Cnet

No Sleep - Apponic

It moves your mouse once a minute by one pixel. Thus it prevents your windows from going to sleep mode.

  • This program seems can no longer be accessed in its original location. It says permission denied.
    – xji
    Jan 7, 2017 at 23:24
  • 1
    @JIXiang, I found a copy here of this file here: Todd Cramer’s Blog Jan 8, 2017 at 7:01

You could use this AutoHotkey script:

CoordMode, Mouse, Screen
    ; Move mouse
    MouseMove, 1, 1, 0, R
    ; Replace mouse to its original location
    MouseMove, -1, -1, 0, R
    ; Wait before moving the mouse again
    Sleep, 600000

You can download the portable version of AutoHotkey here.


When you click on the link for Todd Cramer's blog (which is http://thecramers.us/windows/prevent-windows-screen-timeout-and-sleep-mode-nosleep-exe/ ) , it takes you to a page that has nothing to do with Todd Cramer or his software. Presumably because his domain-name or web-hosting expired.

However, when I downloaded the NoSleep program back in 2017, I also took screencaps of his webpage, and I made it a point to keep the downloaded file handy.

Since his site is down, I've hosted it on my Mediafire account.

You can access it via: https://www.mediafire.com/file/vym9ft7coh6s84z/(keep+mouse+moving+to+avoid+screensaver)+--+NoSleep_0+(Archive+file+of+NoSleep+hosted+on+MediaFire+).rar/file


via this URL-shortcut: https://waa.ai/NoSleepOnMediafire

Hope this helps!


This can be done by the following:

  1. Go to Control Panel
  2. Click on Power Options
  3. Click on Change plan settings (to which ever plan is selected)
  4. Change 'Put the computer to sleep' on NEVER
  5. Click Save Changes
  • 1
    Which requires admin access. and i dont want that. Mar 6, 2015 at 9:40
  • 1
    Then it's policy driven and you won't be able to without the correct access rights. @NikiteshKolpe
    – Chris
    Mar 6, 2015 at 14:34
  • I think this should be the best answer since it relies on some inherent mechanism of Windows instead of any third-party tools.
    – xji
    Jan 8, 2017 at 7:08
  • 7
    @JIXiang I disagree, it doesn't answer the question being how to prevent Windows from sleeping without admin rights.
    – Otiel
    Mar 26, 2018 at 15:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .