Does the schema upgrade while promoting server from cmdlet

Anant Bera 151 Reputation points
2024-09-13T05:30:16.01+00:00

Hi

We are planning to promote the server using the cmdlets

Install-ADDSDomainController -CreateDnsDelegation:$false -DomainName $Domain

While promoting the servers from the Server Manager GUI then it also upgrades the Schema as well, so when we promote the server using the Cmdlets does it also do the same or do we have to include an separate part of script to upgrade the schema

Thanks

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,227 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,644 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,553 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hania Lian 17,296 Reputation points Microsoft Vendor
    2024-09-13T07:04:41.4133333+00:00

    Hello,

    When you promote a domain controller using the Install-ADDSDomainController cmdlet in PowerShell, the process does not automatically upgrade the schema unless you are performing a forest-wide schema upgrade for the first time in your environment. The Install-ADDSDomainController cmdlet is primarily used to add a new domain controller to an existing domain or to create the first domain controller in a new domain.

    If you need to upgrade the schema, this is typically done separately and requires administrative privileges with the Schema Admins group. You would use the adprep tool, which comes with the Windows AD DS installation media, to perform a schema update. Here’s how you would generally approach this:

    Schema Preparation: Before you can install a new domain controller that has a higher functional level (for example, upgrading from Windows Server 2008 R2 to Windows Server 2016 or newer), you must prepare the schema. This is done by running the adprep /schema command on a domain controller that is running the same version of Windows Server as the new domain controller you are planning to install.

    Forest Preparation: If you are raising the forest functional level, you will also need to run adprep /forestprep to prepare the forest for the new functional level.

    After preparing the schema and forest, you can proceed with promoting the domain controller using the Install-ADDSDomainController cmdlet. Note that if you're adding a domain controller to an existing domain at a higher functional level without changing the forest functional level, you do not need to run adprep commands again unless you are also changing the forest schema.

    Remember that these steps should be performed carefully, as they involve significant changes to your directory services environment. Always ensure that you have backups before making such changes.

    Best Regards,

    Hania Lian

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.