Powershell : QuickCMD : Find/Modify the default Active Directory Domain Services (AD DS) domain password policy

Get the default password policy for an Active Directory domain

 Get-ADDefaultDomainPasswordPolicy  [-Identity] <ADDefaultDomainPasswordPolicy>

Get-ADDefaultDomainPasswordPolicy

Modify the default password policy for the current Active Directory domain disableing the password history count

 Get-ADDomain | Set-ADDefaultDomainPasswordPolicy -PasswordHistoryCount 0 
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s