Skip to content

How to Stop Windows From Sleeping When Locked

Warning: Undefined array key "titleWrapper" in /home/customer/www/ on line 103

Do you find it frustrating when your Windows computer goes to sleep and locks itself when you leave it unattended?

Fortunately, there’s a way to stop Windows from sleeping by changing your system settings.

In this article, you will learn

Why Windows Sleeps When Locked

Windows goes to sleep when locked due to the system setting defined by Microsoft Windows.

These are set to save the power and life of the machine.

But sleeping stops processing happening in the background which users don’t want always.

How to Stop Windows From Sleeping When Locked

In order to stop Windows from going to sleep we need to change the system settings that are in REGIT.

1. Open the RUN BOX

You need to open Run Box which will help you open Regit. You can open it by pressing Ctrl + R. Or typing in a search.

2. Open REGIT

To open Registry Editor you need to type “regedit” in the Run dialog box or “regedit.exe” and hit enter. This will open the Registry Editor.

3. Open Location

Navigate to the following location. copy it and paste it.


4. Change Attribute

You need to Change the Attribute Value In the Registry Editor.

Here, you’ll see a list of attributes. Find the attribute named “Attributes” and double-click on it.

In the window that opens, change the value to 2 and click OK. This will open up the advanced settings.

5. Go to Sleep Setting

In order to go to sleep setting you need to open the control panel.

You can do this by searching “Control Panel” in the Start menu.

You need to change the view in the control menu to the large icon.

This will make it easier to find the next setting we need to change.

Now open Power Options Next, double-click on the Power Options icon.

Now change click on the “Change when the computer sleeps” link on the left side of the screen.

Now click on the “Change advanced power settings” link.

Scroll down to find the “Sleep” setting, and expand it.

Find the “System unattended sleep timeout” setting and click on it to expand it.

Change the time value to the desired amount of time that you want your computer to stay awake when it’s locked.


Following these simple steps, you can prevent your Windows computer from sleeping when it’s locked.

This can be helpful if you need to leave your computer unattended for a short period of time and don’t want to have to log back in when you return.

We hope you found this article helpful. If you have any questions or comments, please feel free to leave them below. Thanks for reading!

Was this article helpful?