January 18th, 2013

PowerTip: Get the Default Domain Password Policy

Doctor Scripto
Scripter

Summary: Use a Windows PowerShell cmdlet to return the default domain password policy.

Hey, Scripting Guy! Question How can I find the default domain password policy?

Hey, Scripting Guy! Answer  Use the Get-ADDefaultDomainPasswordPolicy cmdlet from the RSAT tools, as shown here.

19:05 C:\> Get-ADDefaultDomainPasswordPolicy

ComplexityEnabled           : True

DistinguishedName           : DC=nwtraders,DC=msft

LockoutDuration             : 00:30:00

LockoutObservationWindow    : 00:30:00

LockoutThreshold            : 5

MaxPasswordAge              : 42.00:00:00

MinPasswordAge              : 1.00:00:00

MinPasswordLength           : 7

objectClass                 : {domainDNS}

objectGuid                  : 5765f6d1-cb6e-475d-8ed1-0b9ca6abfec1

PasswordHistoryCount        : 24

ReversibleEncryptionEnabled : False

 

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.