CmdID / PowerShell / Cmdlets / Get
Get-ADForest
Gets an Active Directory forest. Windows Server PowerShell reference
From the Windows Server PowerShell reference 5 parameters Its page in the reference
Parameters
-AuthTypeSpecifies the authentication method to use.-CredentialSpecifies the user account credentials to use to perform this task.-CurrentSpecifies whether to return the domain of the local computer or the current logged on user.-IdentitySpecifies an Active Directory forest object by providing one of the following attribute values.-ServerSpecifies the Active Directory Domain Services (AD DS) instance to connect to, by providing one of the following values for a corresponding domain name or directory server.