Windows Server · Lesson 06

Password, Lockout & Account Policies

Learn where local and domain password policy actually comes from, how account lockout settings work together, and how to protect authentication without breaking required accounts.

The secure choice is not a memorized number. It is the policy that satisfies the scenario, protects the environment, and preserves required administrative and service access.

Lesson Snapshot

Password areas6
Lockout areas3
Policy scopesLocal + domain
GoalSecure authentication

Learning objectives

What this lesson should help you do

01

Explain how local password policy differs from domain password policy on Windows Server.

02

Use the correct administrative path to review password and account lockout settings at the right scope.

03

Interpret password length, history, age, complexity, lockout threshold, lockout duration, and reset counter settings.

04

Use gpresult, net accounts, and Active Directory PowerShell to inspect effective account-policy context.

05

Recognize why domain controllers and domain users require domain-level policy reasoning.

06

Avoid one-size-fits-all values by following scenario requirements, organizational policy, and dependency-aware verification.

Core concepts

Understand the policy source before the value

Password policy

Controls password-related requirements such as history, age, length, and complexity at the applicable local or domain scope.

Account lockout policy

Controls when repeated failed sign-in attempts can lock an account and how long that lockout lasts.

Domain policy

For domain accounts, password and lockout behavior is normally governed by domain-level policy rather than one member server's local setting.

Local policy

Applies to local accounts on a standalone or member server when the setting is not superseded by other applicable policy.

Fine-grained password policy

In Active Directory, Password Settings Objects can apply different password or lockout requirements to selected users or global security groups.

Effective policy

The policy that actually governs the target account after scope, domain configuration, and any fine-grained password policy are considered.

Core idea

Scope comes before strength

A strong-looking setting in the wrong place may do nothing for the account you are trying to protect.

Availability warning

Authentication policy can break required access

Password resets and lockout changes can affect administrators, services, tasks, applications, and remote-management workflows.

Identify dependencies and preserve an authorized recovery path before high-impact changes.

Tool map

Exactly where to review password and lockout policy

Domain password policy in Group Policy Management

Server Manager → Tools → Group Policy Management → Forest → Domains → your domain → review the domain-linked GPO that defines account policy

Quick action

Win + R → gpmc.msc

For domain accounts, review the domain-level policy source instead of assuming a member server's local policy controls the result.

Password Policy

Computer Configuration → Policies → Windows Settings → Security Settings → Account Policies → Password Policy

Quick action

Open the correct GPO first, then navigate to Password Policy.

Review each configured value in context. Do not substitute arbitrary values for scenario or organizational requirements.

Account Lockout Policy

Computer Configuration → Policies → Windows Settings → Security Settings → Account Policies → Account Lockout Policy

Quick action

Open the correct GPO first, then navigate to Account Lockout Policy.

Lockout policy reduces password-guessing risk but overly aggressive settings can create availability problems.

Local Security Policy

Win + R → secpol.msc → Account Policies

Quick action

Use on applicable member or standalone servers for local-account policy review.

Do not assume this is the effective source for domain-user password policy.

Local Group Policy

Win + R → gpedit.msc → Computer Configuration → Windows Settings → Security Settings → Account Policies

Quick action

Useful for local policy review when local scope is appropriate.

Domain GPOs can supersede local settings on domain-joined systems.

Active Directory Administrative Center

Server Manager → Tools → Active Directory Administrative Center → your domain → System → Password Settings Container

Quick action

Use when reviewing fine-grained password policies.

Fine-grained password policy can change the result for selected domain users or groups even when the default domain policy looks correct.

Password Policy

What each major setting actually controls

Enforce password history

Determines how many previous passwords are remembered so users cannot immediately recycle them.

Decision note

Review the required policy and whether account workflows depend on frequent password changes.

Maximum password age

Defines how long a password can remain valid before change is required when expiration is used.

Decision note

Do not assume shorter is always safer. Follow the scenario or authorized policy.

Minimum password age

Controls how soon a password can be changed again and can help prevent rapid cycling through password history.

Decision note

Review together with password history and administrative reset procedures.

Minimum password length

Sets the minimum number of characters required for passwords under the applicable policy.

Decision note

Use the scenario or organizational requirement rather than inventing a universal competition value.

Password must meet complexity requirements

Enables Windows complexity rules for applicable passwords.

Decision note

Understand what the setting changes and verify that required accounts can still authenticate after policy changes.

Store passwords using reversible encryption

Allows passwords to be stored in a form that can be recovered by the system for legacy authentication needs.

Decision note

Treat enabling this as high risk unless an explicit authorized requirement justifies it.

Account Lockout Policy

Three settings that must be reasoned about together

Account lockout threshold

Specifies how many failed sign-in attempts can trigger lockout when lockout is configured.

Too permissive can allow repeated guessing; too aggressive can make denial-of-service or accidental lockouts easier.

Account lockout duration

Controls how long a locked account remains locked before automatic recovery when configured that way.

Long lockouts can interrupt required administration or service access if applied carelessly.

Reset account lockout counter after

Defines when the failed-attempt counter returns toward a clean state.

Review it together with threshold and duration rather than treating each value independently.

Scope examples

Which policy source controls which account?

Local user on a member server

Likely source

Local security policy or applicable policy affecting that server's local accounts.

Inspect

secpol.msc, gpresult, and net accounts on the member server.

Domain user

Likely source

Default domain password policy or another domain-level account-policy source.

Inspect

Group Policy Management plus Get-ADDefaultDomainPasswordPolicy.

Domain user with fine-grained policy

Likely source

A Password Settings Object with higher precedence for that user or group.

Inspect

Active Directory Administrative Center or Get-ADUserResultantPasswordPolicy.

Built-in local administrator on a member server

Likely source

Local account policy on that member server, subject to applicable security configuration.

Inspect

Local Security Policy and local account state.

Service account

Likely source

Depends on whether the identity is local or domain-based and whether a fine-grained policy applies.

Inspect

Identify the account type first, then inspect the correct local or domain policy source.

Inspection commands

Confirm policy instead of guessing

Local account policy summary

net accounts

Shows a concise local account-policy summary on the current system. On a domain controller, interpret output in the correct domain context.

Domain account policy summary

net accounts /domain

Queries domain account-policy information when run with appropriate domain connectivity and permissions.

Default domain password policy

Get-ADDefaultDomainPasswordPolicy

Shows the Active Directory domain's default password and lockout policy when the ActiveDirectory module is available.

Resultant fine-grained password policy

Get-ADUserResultantPasswordPolicy -Identity "username"

Shows the effective fine-grained password policy for a specific domain user when one applies.

List fine-grained password policies

Get-ADFineGrainedPasswordPolicy -Filter * | Select-Object Name, Precedence, MinPasswordLength, PasswordHistoryCount, LockoutThreshold

Inventories Password Settings Objects without changing them.

Effective Group Policy summary

gpresult /r

Shows applied Group Policy context and helps confirm whether the expected domain GPO is affecting the server.

Fine-grained password policy

Why one domain user can behave differently from another

Why it exists

Fine-grained password policy allows different domain users or global security groups to receive different password and lockout requirements.

Where it lives

Password Settings Objects are stored in Active Directory and can be reviewed in Active Directory Administrative Center or with PowerShell.

Precedence

When multiple Password Settings Objects could apply, precedence helps determine which one wins.

Resultant policy

Always check the user's resultant password policy instead of guessing from group membership alone.

Service accounts

Some environments use different password behavior for service identities, but every exception should be justified and protected carefully.

Competition reasoning

If a user's behavior does not match the default domain policy, investigate whether a fine-grained policy is affecting the account.

Safe review flow

Six steps from account type to verification

01

Identify the account type

Determine whether you are reviewing a local account, domain account, or service identity before looking at policy values.

02

Identify the policy source

Use Local Security Policy for local-account context and Group Policy Management / Active Directory tools for domain-account context.

03

Inspect effective policy

Use net accounts, gpresult, Get-ADDefaultDomainPasswordPolicy, and resultant password-policy checks as appropriate.

04

Compare against requirements

Use the fictional scenario or authorized organizational policy as the standard instead of choosing arbitrary values.

05

Protect dependencies

Identify administrators, services, tasks, applications, and remote workflows that could fail after password or lockout changes.

06

Change narrowly and verify

Make the smallest justified change, then verify authentication, required services, and administrative access.

Operational risks

Account-policy mistakes can become availability problems

Locking out the only administrator

Changing lockout behavior without preserving an authorized recovery path can interrupt management access.

Breaking a service account

Changing password behavior for an account used by a service, task, application, or scheduled job can cause failures.

Editing local policy instead of domain policy

The local value may be overwritten or irrelevant for domain users.

Using arbitrary competition values

A secure policy still needs to match scenario requirements and the authorized environment.

Forcing password changes blindly

Unexpected resets can break stored credentials used by services, tasks, applications, or remote processes.

Ignoring fine-grained policy

A specific user may receive different settings from the default domain policy.

Decision cases

Password and lockout decisions in context

Local policy looks weaker than expected

On a domain-joined member server, secpol.msc shows a local password value that differs from the domain standard.

The local value does not prove what governs domain users.

Response

Inspect gpresult and the domain password policy before changing the local setting.

One user does not follow the default domain password policy

Most users share one set of requirements, but one service account behaves differently.

A fine-grained password policy may apply to that identity.

Response

Use Get-ADUserResultantPasswordPolicy and review Password Settings Objects before assuming the domain policy is broken.

Lockout policy is extremely aggressive

A small number of failed sign-ins can cause a long lockout.

The setting may reduce guessing attempts but also creates availability and accidental lockout risk.

Response

Compare the setting with scenario requirements and authorized policy, preserve administrator access, and change only if justified.

Named service account password is being changed

A required Windows service runs under a domain account whose password will be updated.

The service may still store the old credential and fail after the password changes.

Response

Document every dependency, coordinate the credential change, update dependent services or tasks, and verify them immediately.

Fictional defensive lab

Review CYBERSHIELD.LOCAL account policy

Step 01

Identify the fictional environment

DC-PRACTICE hosts the CYBERSHIELD.LOCAL domain. Morgan is the required administrator, and AppSvc is a required domain service account.

Step 02

Open the domain policy source

Use Server Manager → Tools → Group Policy Management and locate the domain-linked GPO that defines account policy.

Step 03

Review password and lockout policy

Navigate to Account Policies → Password Policy and Account Lockout Policy. Record the configured values without changing them.

Step 04

Confirm with PowerShell

Run Get-ADDefaultDomainPasswordPolicy and compare its output with the values observed in Group Policy Management.

Step 05

Investigate AppSvc

Use Get-ADUserResultantPasswordPolicy -Identity AppSvc to determine whether a fine-grained policy changes its effective requirements.

Step 06

Verify dependencies

After any authorized policy or credential change, verify Morgan can administer the domain and the AppSvc-dependent application still runs.

Common mistakes

Password-policy mistakes that create confusion or outages

Changing local policy for a domain-user problem

The real setting may be coming from domain policy or a fine-grained policy.

Copying values from a generic checklist

Security policy should reflect the scenario and authorized environment, not arbitrary numbers.

Ignoring service accounts

A password change can break services, tasks, scripts, or applications that store credentials.

Locking out required administrators

Availability matters. Preserve an authorized recovery path before tightening lockout settings.

Looking only at one GPO

The policy you open may not be the effective policy for the target account.

Ignoring fine-grained policy

A selected user can receive different settings from the domain default.

Reflection

Test your account-policy reasoning

Question 1

Why can secpol.msc show a value that is not the effective password policy for a domain user?

Question 2

What is the difference between default domain password policy and fine-grained password policy?

Question 3

Why should account lockout threshold, duration, and reset counter be reviewed together?

Question 4

How can a password change break a required service?

Question 5

Why is gpresult useful even when the password settings are being reviewed in Group Policy Management?

Question 6

What should be verified after changing password or lockout policy?

Verification checklist

Confirm authentication still works

01

The correct local or domain policy source was identified.

02

Domain users are governed by the intended domain password policy.

03

Any fine-grained password policy is understood and intentional.

04

Authorized administrators can still sign in.

05

Required service accounts still run their services.

06

Required scheduled tasks still authenticate successfully.

07

Required applications using stored credentials still function.

08

No unexpected lockouts occurred after the change.

09

gpresult and domain-policy commands show the expected effective configuration.

10

Relevant Security and System logs show no new authentication or service failures.

Competition checklist

Before leaving password and lockout policy

01

Identify whether the account is local or domain-based.

02

Open the correct policy-management tool.

03

Review Password Policy.

04

Review Account Lockout Policy.

05

Use gpresult to understand policy context.

06

Use net accounts for a quick summary.

07

Use Get-ADDefaultDomainPasswordPolicy for domain policy.

08

Check fine-grained password policy when behavior differs by user.

09

Protect required administrator access.

10

Check service-account dependencies before password changes.

11

Avoid arbitrary universal policy values.

12

Verify authentication and required services after changes.

Next Windows Server lesson

Microsoft Defender Antivirus

Next, review Defender health, real-time protection, exclusions, detections, security intelligence, scan history, and evidence preservation on Windows Server.

Open Lesson 07 →