Skip to content

Quickly Disable Active Directory Password Policies in Lab

Just discovered there is a simple PowerShell Cmdlet for this, saves having to dig into Group Policy

$Domain = “domain.com”

Set-ADDefaultDomainPasswordPolicy –Identity $Domain -PasswordHistoryCount 0 –MinPasswordLength 0 -MinPasswordAge 0 -MaxPasswordAge 0 -LockoutObservationWindow 0 -LockoutThreshold 0 -ComplexityEnabled $False

Published inPowerShell

Be First to Comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.