How to Disable Auto Lock on Windows Server via Group policy

Server auto lock is very frustrating when you working in LAB environment as it requires to log in frequently. So to get rid of this I wrote this small blog.

Of course, you won’t want to disable the auto-lock in PROD environment due to security reasons 😊

So this is recommended for LAB environment only

Log on to a domain controller

Open group policy console by typing GPMC.MSC in RUN or command prompt

Now the policy has been created.

Select the policy, right-click and edit the policy

Navigate to:

Computer Configuration > Policies > Windows Settings > Security Settings > Local Policies > Security Options > Interactive Logon : Machine inactivity limit

Double click the Interactive logon: Machine inactive limit

The policy explains below:

Interactive logon: Machine inactivity limit.

Windows notices inactivity of a logon session, and if the amount of inactive time exceeds the inactivity limit, then the screen saver will run, locking the session.

Default: not enforced.

Now set the value as shown below

That’s it , now update the policy on end computer by typing “GPUPDATE /FORCE” in command prompt.

If you are applying the policy on large number, the policy will be auto updated within 90-120 minutes.

Just for your information, you can update the group policy at OU level as shown below

In next screen you will get below windows. Click Yes

Below is the result

This is how it works!!! Hope you got something from this post. See you in next blog

Thank You! 🙂