18 - How to Configure Account Lockout Policy on Windows Server 2022 (Video Tutorial in Khmer)
Learn how to configure account lockout policy on Windows Server 2022 step-by-step with video tutorial in Khmer and easy setup tips.
2026-09-06 ยท 4 min read
Hello my friend! Today I show you step-by-step how to Configure Account Lockout Policy in Windows Server 2022! Account Lockout Policy protects your Active Directory domain from brute-force password guessing attacks by automatically locking out user accounts after a specific number of failed login attempts! Very easy to follow with video tutorial in Khmer! Let's get started!

Step 1: Open Default Domain Policy in Group Policy Management
Account Lockout Policy MUST be configured inside Default Domain Policy (or Fine-Grained Password Policy) to apply to all domain accounts:
- Open Server Manager > click Tools > select Group Policy Management (
gpmc.msc). - Expand your Forest > Domains > expand domain name (example:
rean.local). - Right-click Default Domain Policy > select Edit....
๐ก Tip: Always configure Account Lockout Policy inside Default Domain Policy linked at domain root level! Creating a custom GPO for account lockout at OU level will NOT affect domain user accounts!
Step 2: Navigate to Account Lockout Policy Settings
Inside Group Policy Management Editor console:
- Navigate to: Computer Configuration โ Policies โ Windows Settings โ Security Settings โ Account Policies โ Account Lockout Policy
- On right side pane, you will see 3 important security policy items:
- Account lockout threshold
- Account lockout duration
- Reset account lockout counter after
Step 3: Configure Threshold, Duration, and Counter Settings
Now set security values for lockout settings:
- Double-click Account lockout threshold:
- Set value to
5invalid logon attempts (or3to5). - Click OK.
- Set value to
- Windows security popup will suggest default values for duration and reset counter:
- Account lockout duration:
15minutes (or30minutes). - Reset account lockout counter after:
15minutes.
- Account lockout duration:
- Click OK to accept suggested values.
๐ก Tip: Setting Account lockout threshold = 0 means accounts will NEVER lock out! Setting threshold to
5is ideal balance between security protection and avoiding locking out real users who mistype passwords.
Step 4: Force Group Policy Update on Domain Controller
Apply updated security policy across your domain controllers immediately:
- Open Command Prompt (
cmd) or PowerShell on Domain Controller. - Force Group Policy update:
gpupdate /force
๐ก Tip: Group Policy automatically replicates to all secondary Domain Controllers within a few minutes!
Step 5: Verify Account Lockout Policy & Test Lockout
Verify active domain lockout settings using command line:
- Open Command Prompt (
cmd) and check active domain policies:
# Display domain password and lockout policy settings
net accounts /domain
Output will show:
Lockout threshold: 5
Lockout duration (minutes): 15
Lockout observation window (mins): 15
- Test Lockout: Go to client PC, attempt logging in with valid username (example:
sok.dara) and wrong password 5 times in a row! - On 6th attempt, Windows will display message: The referenced account is currently locked out and may not be logged on to.
๐ก Tip (How to Unlock User Account): If employee account gets locked out, open Active Directory Users and Computers (
dsa.msc), double-click user > Account tab > check box[x] Unlock account. This account is currently locked out on this Active Directory Domain Controller.> click Apply!
Watch Video Tutorial (Khmer)
Watch full step-by-step video tutorial below to see how to configure Account Lockout Policy in Windows Server 2022 in Khmer:
Hope this tutorial help you configure Account Lockout Policy easily! Practice setting up account security policies on your domain today. Happy learning my friends! Sharing is caring!