Active DirectoryWindows Server

Step-by-Step guide to migrate active directory FSMO roles from windows server 2012 R2 to windows server 2016

Windows server 2016 was released for public (GA) on mid oct 2016. Its exciting time as businesses are already working on migrating their services in to new windows server 2016 infrastructures. In this post, I am going to explain how you can migrate from active directory running on windows server 2012 R2 to windows server 2016 active directory. The same steps are valid for migrating from windows server 2012, windows server 2008 R2 and windows server 2008.

In my demo setup, I have a windows server 2012 R2 domain controller as PDC. I setup windows server 2016 and already added to the existing domain.

active directory PDC

Current domain and forest functional level of the domain is windows server 2012 R2.

active directory forest and domain functional levels

So, let’s start with the migrate process.

Install Active Directory on windows server 2016

1. Log in to windows server 2016 as domain administrator or enterprise administrator
2. Check the IP address details and put the local host IP address as the primary DNS and another AD server as secondary DNS. This is because after active directory install, server itself will act as DNS server
3. Run servermanager.exe form PowerShell to open server manager (there is many ways to open it)
open server manager
4. Then click on Add Roles and Features
add roles
5. It will open up the wizard, click next to continue
adding roles
6. In next window keep the default and click next
select role installation
7. Roles will be installed on same server, so leave the default selection and click next to continue
select server
8. Under the server roles tick on Active Directory Domain Services, then it will prompt with the features needs for the role. Click on add features. Then click next to proceed
install active directory role
active directory feature dependencies
proceed with active directory role
9. On the features windows keep the default and click next
default feature selection
10. In next window, it will give brief description about active directory DS, click next to proceed
install domain service
11. Then in next window it will give brief description about configuration and click on install to start the role installation process.
complete role installation
process of role installation
12. Once installation completed, click on promote this server to a domain controller option
promote active directory domain controller
13. It will open up the Active Directory Domain Service configuration wizard, leave the option Add a domain controller to existing domain selected and click next.
adding domain controller to existing domain
14. In next window define a DSRM password and click next
DSRM password
15. In next window click on next to proceed
DNS default option
16. In next windows, it asks from where to replicate domain information. You can select the specific server or leave it default. Once done click next to proceed.
replication selection
17. Then it shows the paths for active directory DS database, log files and SYSVOL folder. You can change the paths or leave default. In demo, I will keep default and click next to continue
SYSVOL location
18. In next windows, it will explain about preparation options. Since this is first windows server 2016 active directory on the domain it will run forest and domain preparation task as part of the configuration process. Click next to proceed.
domain preperation
19. In next window, it will list down the options we selected. Click next to proceed.
proceed with config
20. Then it will run prerequisite check, if all good click on install to start the configuration process.
install domain service
21. Once the installation completes it will restart the server.
forest upgrade progress

Migrate FSMO Roles to windows server 2016 active directory

I assume by now you have idea what is FSMO roles. If not search my blog and you will find article explaining those roles.
There are 2 ways to move the FSMO roles from one active directory server to another. One is using GUI and other one is using command line. I had already written articles about GUI method before so I am going to use PowerShell this time to move FSMO roles. If you like to use GUI mode search my blog and you will find articles on it.
1) Log in to windows server 2016 AD as enterprise administrator
2) Open up the Powershell as administrator. Then type netdom query fsmo. This will list down the FSMO roles and its current owner.
current FSMO role holders
3) In my demo, the windows server 2012 R2 DC server holds all 5 fsmo roles. Now to move fsmo roles over, type Move-ADDirectoryServerOperationMasterRole -Identity REBELTEST-PDC01 -OperationMasterRole SchemaMaster, DomainNamingMaster, PDCEmulator, RIDMaster, InfrastructureMaster and press enter
In here REBELTEST-PDC01 is the windows server 2016 DC. If FSMO roles are placed on different servers, you can migrate each and every FSMO roles to different servers.
migrate FSMO roles
4) Once its completed, type netdom query fsmo again and you can see now its windows server 2016 DC is the new FSMO roles owner.
new FSMO role holders

Uninstall AD role from windows server 2012 R2

Now we moved FSMO roles but we still running system on windows 2012 R2 domain and forest functional levels. In order to upgrade it, first we need to decommission AD roles from existing windows server 2012 R2 servers.
1) Log in to windows 2012 R2 domain server as enterprise administrator
2) Open the PowerShell as administrator
3) Then type Uninstall-ADDSDomainController -DemoteOperationMasterRole -RemoveApplicationPartition and press enter. It will ask for local administrator password. provide new password for local administrator and press enter.
uninstall old domain controller
updc29
complete uninstallation
4) Once its completed it will restart the server.

Upgrade the forest and domain functional levels to windows server 2016

Now we have the windows server 2012 R2 domain controllers demoted, next step is to upgrade domain and forest functional levels.
1) Log in to windows server 2016 DC as enterprise administrator
2) Open PowerShell as administrator
3) Then type Set-ADDomainMode –identity rebeladmin.net -DomainMode Windows2016Domain to upgrade domain functional level to windows server 2016.  In here rebeladmin.net is the domain name.
update active directory domain functional level
4) Then type Set-ADForestMode -Identity rebeladmin.net -ForestMode Windows2016Forest to upgrade forest functional level.
update active directory forest functional level
5) Once done you can run Get-ADDomain | fl Name,DomainMode and Get-ADForest | fl Name,ForestMode to confirm new domain and functional level
updated active directory functional levels
Hope this post was useful and if you got any questions feel free to contact me on rebeladm@live.com
 
Related posts
Active Directory

Mastering Active Directory – 3rd Edition

I am glad to announce the release of my new book “Mastering Active Directory – 3rd Edition”…
Read more
Active DirectoryMicrosoft Entra ID

Step-by-Step Guide: How to sync Custom Active Directory Attributes to Azure AD?

Active Directory schema accepts custom attributes. Based on business requirements some time…
Read more
Active Directory

Step-by-Step Guide: Active Directory Migration from Windows Server 2008 R2 to Windows Server 2022

Windows Server 2008 and Windows Server 2008 R2 Operating system reached the end of their support…
Read more
Newsletter
Become a Trendsetter

Sign up and get the best of RebelAdmin, tailored for you.

24 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *