Tutorial - Creating the GPO to lock user accounts
On the domain controller, open the group policy management tool.
Create a new group policy.
Enter a name for the new group policy.
In our example, the new GPO was named: ACCOUNT LOCKOUT.
On the Group Policy Management screen, expand the folder named Group Policy Objects.
Right-click your new Group Policy Object and select the Edit option.
On the group policy editor screen, expand the Computer configuration folder and locate the following item.
We will change only Computer configurations.
On the right, the list of available configuration options will be presented.
Access the item named: Account lockout threshold.
Set the number of invalid login attempts before the user account is locked.
In our example, the fourth incorrect login attempt will block the user account.
The system will automatically configure the lockout duration time to 30 minutes.
Access the item named: Account lockout duration.
Set the number of minutes a locked-out account remains locked.
In our example, the account will remain locked for 5 minutes.
After 5 minutes, the account will automatically become unlocked.
The system will automatically configure the lockout counter to be reset after the same amount of time.
If the account lockout duration is set to 0, the user account will remain blocked.
To save the group policy configuration, you need to close the Group Policy editor.
Only when you close the group policy editor, the system will save your configuration.
The default domain policy already has a configuration to the account lockout policy.
The default domain policy is set to never block a user account.
Before enabling your account lockout policy, you need to disable this part of the configuration on the default domain policy.
Congratulations! You have finished the GPO creation.