Summary:

# Method 1 : Get-ADDefaultDomainPasswordPolicy

We can use the AD powershell cmdet Get-ADDefaultDomainPasswordPolicy to gets the default password policy for an Active Directory domain. Before proceed, import the Active Directory module first by running below command.

Import-Module ActiveDirectory

The below command get the default domain password policy from current logged on user domain.

Get-ADDefaultDomainPasswordPolicy

This command get the default domain password policy from a given domain.

Get-ADDefaultDomainPasswordPolicy -Identity contoso.com

This command returns the following results (ComplexityEnabled, MaxPasswordAge, MinPasswordAge and MinPasswordLength).