PowerShell Logo Small

Get-ADDefaultDomainPasswordPolicy



This is the built-in help made by Microsoft for the command 'Get-ADDefaultDomainPasswordPolicy', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 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] <ADCurrentDomainType>] [-AuthType <ADAuthType>] [-Credential <PSCredential>] [-Server <String>]
[<CommonParameters>]
Get-ADDefaultDomainPasswordPolicy [-Identity] <ADDefaultDomainPasswordPolicy> [-AuthType <ADAuthType>] [-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/?LinkID=219316
Get-ADDomain

REMARKS

<

Examples


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

C:\PS>Get-ADDefaultDomainPasswordPolicy -Current LoggedOnUser



Description

-----------

Get the default domain password policy from current logged on user domain.




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

C:\PS>Get-ADDefaultDomainPasswordPolicy -Current LocalComputer



Description

-----------

Get the default domain password policy from current local computer.




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

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



Description

-----------

Get the default domain password policy from a given domain.




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

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



Description

-----------

Get the default domain password policy objects from all the domains in the forest.




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

C:\PS>Get-ADDefaultDomainPasswordPolicy



Description

-----------

Get the default domain password policy from current logged on user domain.