Password Policy
Retrieve the domain password policy
Windows
PowerView
Native Powershell
The following retrieves all policy information including password complexity, however when the /domain switch is used, it does not return the password complexity requirements.
C:\> net accounts
C:\> net accounts /domain
$p=Get-DomainPolicy; $p.SystemAccess
Get-ADDefaultDomainPasswordPolicy -Current LoggedOnUser
Copy link