![](http://3.bp.blogspot.com/-AVE9-qDqSIQ/WHkt4qNcSmI/AAAAAAAAN20/1EdBBftLSmg5mv83EG527VRbU52xOt6-wCLcB/s1600/FSMO-Roles-Windows-2012-to-Windows-2016.png)
This article will guide you through the steps to transfer active directory FSMO roles from Windows Server 2012 R2 to Windows Server 2016. For this guide, example.com will be my domain name. I have a Windows Server 2012 R2 domain controller as PDC (source server) and one Windows Server 2016 (target server) which I have already added to my existing domain.
![](http://1.bp.blogspot.com/-O7m4VZTCis4/WHkeGvDS2VI/AAAAAAAAN0s/mn7RHd-4DcALJpNTQfUsIRas6dL6rQjGQCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-1.png)
Current domain and forest functional level of the domain is Windows Server 2012 R2.
![](http://3.bp.blogspot.com/-HtfQsAzpO9Y/WHkeH3RDBkI/AAAAAAAAN1Q/JW5eK1ZNKO08P_AtYB8OjS_Z2QK-tJczACLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-2.png)
Let's begin with the migration process.
Installing 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 set the localhost (127.0.0.1) IP address as the primary DNS and another AD server as secondary DNS. This is because after AD install, server itself will act as DNS server
3. Run servermanager.exe form PowerShell to open server manager.
![](http://2.bp.blogspot.com/-EBzJMMouWPM/WHkeJBPWMTI/AAAAAAAAN18/NolYUR-WFUgRz4EPPz8wQfvZSM-ewZdtgCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-3.png)
4. Then click on Add Roles and Features
![](http://1.bp.blogspot.com/-_74DXZToceM/WHkeJhP4PsI/AAAAAAAAN2U/wrvvH68WGEcKFSYlv9lgyV0uFTcIVO7OwCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-4.png)
5. It will open up the Add Roles and Feature Wizard, click next to continue
![](http://2.bp.blogspot.com/-qUNpyrqWipw/WHkeJm-L1bI/AAAAAAAAN2Q/dZ-qx0aet_k9Bsm8ES0iMF_BuUPfJvA9ACLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-5.png)
6. Keep the default selection and Click next
![](http://1.bp.blogspot.com/-gPEd3Xs7lbY/WHkeJ2ZZtMI/AAAAAAAAN2Y/nxXbVEIhA_A14PTgCwiaHuS_otz9B8lIQCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-6.png)
7. Select your server and click next to continue
![](http://4.bp.blogspot.com/-AkUO69oyJN4/WHkeKCOwKUI/AAAAAAAAN2c/VmPiA1r38W4ctzWRSj7v3OUGAJHyZbAtgCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-7.png)
8. Under the server roles click on Active Directory Domain Services, it will then prompt with the features needs for the role. Click on add features. Then click next to proceed
![](http://4.bp.blogspot.com/-iGFKwB7EgWo/WHkeKJbHLoI/AAAAAAAAN2g/DhiOG_ZE3RA10T48QbHpTZI8dDy__jr9ACLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-8.png)
![](http://4.bp.blogspot.com/-lP2pIpbnf5g/WHkeKWCIgpI/AAAAAAAAN2k/OP8_lsLY7-kekqzbkHpekUCAoWi48OPnACLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-9.png)
![](http://1.bp.blogspot.com/--ecxXXgqwqQ/WHkeGokzTyI/AAAAAAAAN0k/tPMe3OdgNnQKKeTWShB2f-keWSZMBqAZACLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-10.png)
9. Keep the default selection and click next
![](http://4.bp.blogspot.com/-NYybeQQnXEM/WHkeGnsa9ZI/AAAAAAAAN0o/nMEeG7xAEWk37nxm-pZ4846FOvupfUQKQCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-11.png)
10. Click next to proceed
![](http://3.bp.blogspot.com/-M-ohwT2X084/WHkeHLJlyqI/AAAAAAAAN04/O4cO6awjFyUuPgPDEBTMKpS1CqSn60PggCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-12.png)
11. Click on install to start the role installation process.
![](http://2.bp.blogspot.com/-6DoE35mL_F8/WHkeHPArEdI/AAAAAAAAN0w/HY6LaCpg4G0gjYkbt0I8bz9oUAV66OXUgCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-13.png)
![](http://1.bp.blogspot.com/-uwdrZsD69YI/WHkeHD8jGEI/AAAAAAAAN00/ClcLGySJbR4z1Ta7fYH_pLlKQsun6EJCACLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-14.png)
12. Once installation completed, click on promote this server to a domain controller option
![](http://4.bp.blogspot.com/-fCIsChZ1dl4/WHkeHfP1HOI/AAAAAAAAN08/ichs9wwJyw07zanA1tj1HVB1TM4ZntFjQCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-15.png)
13. Active Directory Domain Service configuration wizard, keep the option Add a domain controller to existing domain selected and click next.
![](http://2.bp.blogspot.com/-0SuG1k_Man4/WHkeHfZb3EI/AAAAAAAAN1A/mkjhiKS1dbwz4ZfGE3N5RbkU0aF0Vsi-wCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-16.png)
14. Provide a DSRM password and click next
![](http://2.bp.blogspot.com/-nGN9dAukU2I/WHkeHY1-IhI/AAAAAAAAN1E/7kEilYdTmgc2d86cN4ez3jAlfTwunUJHwCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-17.png)
15. Click on next to proceed
![](http://4.bp.blogspot.com/-C2hr_ceVfbU/WHkeHrmD7II/AAAAAAAAN1I/X6_bIRIbX4M4agaaBKNJWgEhcXgaY7zBgCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-18.png)
16. From where to replicate domain information. You can select the specific server or leave it default. Once done click next to proceed.
![](http://2.bp.blogspot.com/-5nkuHx98GRo/WHkeH6OEKEI/AAAAAAAAN1M/KP72JBnPABcroY31m1S-aGZGSJxWpfm2QCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-19.png)
17. You can change the paths or keep the default. Click next to continue
![](http://4.bp.blogspot.com/-qzcDrtbf9mc/WHkeIPzKxYI/AAAAAAAAN1U/-457gl1COvA2_xjqE_TBiFFHMLw35wm7QCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-20.png)
18. Since this is the first Windows Server 2016 AD domain, it will run forest and domain preparation task. Click next to proceed.
![](http://4.bp.blogspot.com/-dVwkHmvqffY/WHkeIL3oTAI/AAAAAAAAN1Y/r833mPQDIskUyU4y1pKi0e9NkOZwC3MZQCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-21.png)
19. Click next to proceed.
![](http://3.bp.blogspot.com/-0R_X1mcWbnM/WHkeICc8KiI/AAAAAAAAN1c/lbTkvG425FIyCV2-AtL3drd3jNEhuqNYACLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-22.png)
20. Then it will run prerequisite check, if all well then click on install to start the configuration process.
![](http://3.bp.blogspot.com/-9UnYVpfPAg4/WHkeIffQVzI/AAAAAAAAN1g/r0ijSchDqKg7aSSfejnyTZ-3VPBW4aqxACLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-23.png)
21. Once the installation completes it will restart the server.
![](http://2.bp.blogspot.com/-S9k_8TC8h6U/WHkeIXzq1lI/AAAAAAAAN1k/qo8q03xil_8ihdvksr7IeiLq6W6OK9vsACLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-24.png)
Migrating FSMO Roles to Windows Server 2016 AD
There are 2 methods to transfer the FSMO roles from one server to another. One is using GUI and other one is command line. Since I am more comfortable with command line so I'll be using PowerShell to transfer FSMO roles from Windows 2012 R2 to Windows Server 2016.
1. Log in to Windows Server 2016 AD as enterprise administrator
2. Open up the PowerShell as administrator. Then execute netdom query fsmo command. This will list down the FSMO roles and its current owner.
![](http://4.bp.blogspot.com/-ALNhGZokAW0/WHkeId2Hy9I/AAAAAAAAN1o/rOHguSlgvMAb448wFNhVaMSzxH_RnQdWQCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-25.png)
3. In our example, the Windows Server 2012 R2 AD server holds all 5 fsmo roles. To transfer FSMO toles, execute the following command
Move-ADDirectoryServerOperationMasterRole -Identity TEST-PDC01 -OperationMasterRole SchemaMaster, DomainNamingMaster, PDCEmulator, RIDMaster, InfrastructureMaster
and press enter
In our example, TEST-PDC01 is the Windows Server 2016 DC. If FSMO roles are placed on different servers in your environment, you can migrate each and every FSMO roles to different servers.
![](http://4.bp.blogspot.com/-e7aAcKx-lys/WHkeInHmYGI/AAAAAAAAN1s/h86FPpJCCaMwt64NxDRzZ7wji8fZTvQrQCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-26.png)
4. Once its completed, execute netdom query fsmo again and now you can see its Windows Server 2016 DC is the new FSMO roles owner.
![](http://2.bp.blogspot.com/-tqKzxtmavRM/WHkeIyPJ0lI/AAAAAAAAN1w/_KTNcr6FPyU4n5FxTKGdo2rxOAhWid_ngCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-27.png)
Uninstalling AD role from Windows Server 2012 R2
We have successfully transfered FSMO roles, but still domain and forest functional levels running on Windows 2012 R2 . 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. Execute the following command
Uninstall-ADDSDomainController -DemoteOperationMasterRole -RemoveApplicationPartition
and press enter. It will ask for local administrator password. provide new password for local administrator and press enter.
![](http://2.bp.blogspot.com/-3fVw0uqCgWs/WHkeI_H3bFI/AAAAAAAAN10/Y3_k7J3ievgrPl1DKBK3XFG0vAfQzffnwCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-28.png)
![](http://3.bp.blogspot.com/-RyhHGZUsv9Y/WHkeJOi-r6I/AAAAAAAAN14/Bwxu3inY3D8H6TuR4PlPlFXGTBPu4JmLgCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-29.png)
![](http://1.bp.blogspot.com/--nYg6S4kd_Q/WHkeJXI8jJI/AAAAAAAAN2A/kSLB_r0eoxQk41KwX2Bl6Jx6RkATUgn-gCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-30.png)
4. Once its completed it will restart the server.
Upgrading the forest and domain functional levels to Windows Server 2016
Since we have demoted Windows Server 2012 R2 domain controller, 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. Execute the following command
Set-ADDomainMode –identity rebeladmin.net -DomainMode Windows2016Domain to upgrade domain functional level to Windows Server 2016. In our example, example.com is the domain name.
![](http://1.bp.blogspot.com/-i0K8B1-od00/WHkeJecy7UI/AAAAAAAAN2E/J2xqrLmSY3w9tsdfhnZrhnnrw3vzDbNrACLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-31.png)
4. Now type Set-ADForestMode -Identity rebeladmin.net -ForestMode Windows2016Forest to upgrade forest functional level.
![](http://1.bp.blogspot.com/-td1-hL0QUZs/WHkeJSqzu6I/AAAAAAAAN2I/9FGj1cNIlbcfpqOi9fexSPLfozDXvhsigCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-32.png)
5. Once completed, you can run Get-ADDomain | fl Name,DomainMode and Get-ADForest | fl Name,ForestMode to confirm new domain and functional level
![](http://2.bp.blogspot.com/-TALo1dMPvXE/WHkeJk6mz9I/AAAAAAAAN2M/t7xnXio3BiwbslgnH8xvqem2q5OSowUWQCLcB/s1600/FSMO-Role-Migration-Windows-2012-Windows-2016-33.png)
That's all for now.