PowerShell Logo Small

Set-ADDomainMode



This is the built-in help made by Microsoft for the command 'Set-ADDomainMode', 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

Sets the domain mode for an Active Directory domain.

SYNTAX


Set-ADDomainMode [-Identity] <ADDomain> [-DomainMode] <ADDomainMode> [-AuthType <ADAuthType>] [-Credential <PSCredential>] [-PassThru
[<SwitchParameter>]] [-Server <String>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-ADDomainMode cmdlet sets the domain mode for a domain. You specify the domain mode by setting the DomainMode parameter.


The domain mode can be set to the following values that are listed in order of functionality from lowest to highest.


Windows2000Domain


Windows2003InterimDomain


Windows2003Domain


Windows2008Domain


Windows2008R2Domain


You can change the domain mode to a mode with higher functionality only. For example, if the domain mode for a domain is set to Windows 2003,
you can use this cmdlet to change the mode to Windows 2008. However, in the same situation, you cannot use this cmdlet to change the domain
mode from Windows 2003 to Windows 2000.


The Identity parameter specifies the Active Directory domain to modify. 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 Identity parameter to a domain object variable such as
$<localADDomainObject>, or you can pass a domain object through the pipeline to the Identity parameter. For example, you can use the
Get-ADDomain cmdlet to retrieve a domain object and then pass the object through the pipeline to the Set-ADDomainMode cmdlet.


The Set-ADDomainMode always prompts for permission unless you specify -confirm:$false.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=145002
Get-ADDomain

REMARKS

<

Examples


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

C:\PS>Set-ADDomainMode -Identity fabrikam.com -DomainMode Windows2003Domain



Description

-----------

Set the DomainMode property of the fabrikam.com domain to Windows2003Domain.




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

C:\PS>$pdc = Get-ADDomainController -Discover -Service PrimaryDC
Set-ADDomainMode -Identity $pdc.Domain -Server $pdc.HostName[0] -DomainMode Windows2003Domain



Description

-----------

Set the DomainMode of the current logged on user's domain to Windows2003Domain. The Set operation targets the PrimaryDC FSMO to apply the
update.