tossolution.com
Set-ADDomainMode PowerShell Cmdlet Script - TOSS
The Set-ADDomainMode cmdlet sets the domain mode for a domain. You specify the domain mode by setting the DomainMode parameter.