PowerShell Logo Small

Get-ADDefaultDomainPasswordPolicy



This is the built-in help made by Microsoft for the command 'Get-ADDefaultDomainPasswordPolicy', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Gets the default password policy for an Active Directory domain.

SYNTAX


Get-ADDefaultDomainPasswordPolicy [[-Current] {LocalComputer | LoggedOnUser}] [-AuthType {Negotiate | Basic}] [-Credential <PSCredential>] [-Server <String>]
[<CommonParameters>]
Get-ADDefaultDomainPasswordPolicy [-Identity] <ADDefaultDomainPasswordPolicy> [-AuthType {Negotiate | Basic}] [-Credential <PSCredential>] [-Server <String>]
[<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-ADDefaultDomainPasswordPolicy cmdlet gets the default password policy for a domain.


The Identity parameter specifies the Active Directory domain. You can identify a domain by its Distinguished Name (DN), GUID, Security Identifier (SID), DNS domain name, or
NETBIOS name. You can also set the parameter to a domain object variable, such as $<localDomainObject> or pass a domain object through the pipeline to the Identity parameter.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=291024
Get-ADDomain

REMARKS

<

Examples


-------------------------- EXAMPLE 1 --------------------------

PS C:\>Get-ADDefaultDomainPasswordPolicy -Current LoggedOnUser



This command gets the default domain password policy from current logged on user domain.




-------------------------- EXAMPLE 2 --------------------------

PS C:\>Get-ADDefaultDomainPasswordPolicy -Current LocalComputer



This command gets the default domain password policy from current local computer.




-------------------------- EXAMPLE 3 --------------------------

PS C:\>Get-ADDefaultDomainPasswordPolicy -Identity fabrikam.com



This command gets the default domain password policy from the domain specified by the Site parameter.




-------------------------- EXAMPLE 4 --------------------------

PS C:\>(Get-ADForest -Current LoggedOnUser).Domains | %{ Get-ADDefaultDomainPasswordPolicy -Identity $_ }



This command gets the default domain password policy objects from all the domains in the forest.




-------------------------- EXAMPLE 5 --------------------------

PS C:\>Get-ADDefaultDomainPasswordPolicy



This command gets the default domain password policy from current logged on user domain.