Skip to content

Published: February 20, 2016 | Applies to:

Read how to lock Windows 10 when you close the power lid, by using a simple and quick registry manipulation discussed in this post.

Some of you might not be happy with the default power policy for Windows OSes. According to this policy, when you close the lid of laptop, Windows goes into sleep mode. If you want to customize this pre-defined setting such that when you close the lid, laptop is locked, this article is for you.

After customizing the policy, when you’ll open the power lid, the machine won’t resume directly and you don’t see what you were doing before – as the system will be locked. Another plus point is that if the machine is locked, then you’ve to necessarily input password/PIN/Picture Password to get machine back to work. In this way, your device security is enhanced because if you go with built-in power policy, when you open the lid, system can resume from sleep mode that too without requiring the password.

So here is the quick and working registry manipulation which you’ve to do for locking Windows after you close the power lid.

How To Lock Windows 10 When You Close The Power Lid

1. Press W8K + R and put regedit in Run dialog box to open Registry Editor (if you’re not familiar with Registry Editor, then click here). Click OK.

Windows 10 Registry Editor

2. In the left pane of Registry Editor, navigate to following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power

How To Lock Windows 10 When You Close The Power Lid

3. At this registry location, highlight Power key and come to its corresponding right pane. Do a right click in the blank space and select New > DWORD Value. Name the registry DWORD so created as AwayModeEnabled. Double click on this DWORD to modify its value:

How To Lock Windows 10 When You Close The Power Lid

4. Finally, set the Value data for this DWORD equals to 1. Click OK. You can now close the Registry Editor and reboot. After restarting the machine, you’ll find that closing power lid locks the laptop instead of putting it into sleep mode.

That’s it!

Also check related tweaks:

1. How To Add Power Options To Desktop Context Menu In Windows

2. How To Change Battery Power Plan From Desktop Context Menu

3. How To Enable Hibernate Option In Power Menus For Windows 10


SHARE: Facebook Google+ Twitter

1 Comment

  • Now it worked flawlessly until today. What I did was I set up my fingerprint but I had to add this

    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System]
    “AllowDomainPINLogon”=dword:00000001

    Since I did, everytime I close the lid my computer goes “It’s time for a nap ladies and gentlemen! Bye bye! Please help. I’m desperate :3

  • Leave a Reply

    Your email address will not be published. Required fields are marked *

    What's New


    Recent Comments

    • Paul Westgate : Used this to solve Homegroup issues today and it sorted the ...

      6 hours ago

    • Spiderkeys : I been trying to figure that out for years, where I didn't t...

      9 hours ago

    • John Dunn : Don't have any files in the peernetworking folder. the folde...

      12 hours ago

    • MandeeJ : Mine is also in the continuous BSOD loop. It will not allow ...

      15 hours ago

    • Nagabhushanarao : After 3 months of installation of windows 10 in my Lumia430 ...

      16 hours ago

    • Arpad : Why can I not see the windows insider build 15007 and 15014 ...

      1 day ago


    Windows Group Policy Troubleshooting