How to prevent windows from locking / sleeping (without admin privileges)

77,766

Solution 1

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.

Solution 2

You could use this AutoHotkey script:

CoordMode, Mouse, Screen
Loop
{
    ; 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
}
return

You can download the portable version of AutoHotkey here.

Share:
77,766

Related videos on Youtube

Nikitesh Kolpe
Author by

Nikitesh Kolpe

Updated on September 18, 2022

Comments

  • Nikitesh Kolpe
    Nikitesh Kolpe over 1 year

    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.

  • Nikitesh Kolpe
    Nikitesh Kolpe about 9 years
    Which requires admin access. and i dont want that.
  • Chris
    Chris about 9 years
    Then it's policy driven and you won't be able to without the correct access rights. @NikiteshKolpe
  • xji
    xji over 7 years
    This program seems can no longer be accessed in its original location. It says permission denied.
  • Wernfried Domscheit
    Wernfried Domscheit over 7 years
    @JIXiang, I found a copy here of this file here: Todd Cramer’s Blog
  • xji
    xji over 7 years
    I think this should be the best answer since it relies on some inherent mechanism of Windows instead of any third-party tools.
  • Otiel
    Otiel about 6 years
    @JIXiang I disagree, it doesn't answer the question being how to prevent Windows from sleeping without admin rights.