CmdID / PowerShell / Cmdlets / Set
Set-ADForestMode
Sets the forest mode for an Active Directory forest. Windows Server PowerShell reference
From the Windows Server PowerShell reference 8 parameters Its page in the reference
Parameters
-AuthTypeSpecifies the authentication method to use.-CredentialSpecifies the user account credentials to use to perform this task.-ForestModeSpecifies the forest mode for an Active Directory forest.-IdentitySpecifies an Active Directory forest object by providing one of the following attribute values.-PassThruReturns an object representing the item with which you are working.-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.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-WhatIf, -wiShows what would happen if the cmdlet runs.