It’s time to upgrade the lab to Windows Server 2016, but unfortunately the Windows 2016 Migration Guides from Microsoft is still under development…
Using my Automation Framework it’s pretty easy for me to spin up or simply replace servers in my lab, but Roles & Features like Active Directory, DNS, DHCP, ADFS, CA and File Shares are something I want to do a controlled Windows 2012 R2 to Windows 2016 Migration on.
In my exercise below I’ve demoted my DC-02 (WS12R2) and then just installed a new Windows 2016 Server. Let’s get Started.
Windows 2016 Migration
Active Directory Migration
Luckily my fellow CTP Stephane Thirion has already written a post Migrating FSMO Roles in Windows 2016 that covers this. The only thing missing in his first script is the following:
1 |
Install-WindowsFeature -name "AD-Domain-Services" –IncludeManagementTools |
DHCP Migration
This was straight forward using PowerShell. Run the following command on DC-01:
1 |
Export-DhcpServer -ComputerName dc-01.ctxlab.local -File C:\export\dhcpexport.xml |
Copy the folder C:\Export to DC-02 and run the following command:
1 2 |
Install-WindowsFeature -Name "DHCP" -IncludeManagementTools Import-DhcpServer -ComputerName dc-02.ctxlab.local -File C:\export\dhcpexport.xml |
Certificate Authorities Migration
Follow this Microsoft post Step-By-Step: Migrating The Active Directory Certificate Service From Windows Server 2003 to 2012 R2.
ADFS Migration
Follow the post Upgrading to AD FS in Windows Server 2016. Unfortunately I’ve forgotten my configuration details to join my ADFS farm.
I’ll just Disable ADFS Federation for Office 365 and then follow the post Getting Started with Office 365 to set it up again on Windows 2016.
File Server Migration
This is probably the most important part. I’ve researched using various tools for this including Microsoft File Server Migration Toolkit, but in my experience the easiest solution is still Robocopy.
The following command will replicate Files, Folders and Permissions to the new DC-02. Run the following command from DC-01:
1 |
robocopy "C:\Shares" "\\DC-02\C$\Shares" /XF thumbs.db /COPY:DATSO /MIR |
The final task is to export the registry key HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares
Since I’m going to still host all my Shares on DC-01 I’m now going to demote it, delete the VM, install Windows 2016 and follow the first section of this post.
After everything is up and running I’ll replicate the files and folders back to DC-01, import the registry key and restart the server.
1 |
robocopy "C:\Shares" "\\DC-01\C$\Shares" /XF thumbs.db /COPY:DATSO /MIR |
That’s it, pretty straight forward when you need to perform a Windows 2016 Migration because of the 180 day time-bomb or whatever other reason.
Thanks for telling us Stephane left something out of his script, however, you don’t tell us where in the script the missing line should go. :sigh:
Sorry about that, that would be the first line in the first script, but you probably figured that out by now.
File server migration is tedious task when there are huge files to copy and any disruption in it can lead to wastage of time and that’s what happened to me many times. That’s when I started to look for other software and my friend suggested me to use GS richcopy. This software is simple and packed with features. It notifies me when task is done and never hangs in between. Try it its best!
Nice and well written article, but I will go with Colin Anksh. I took his advice and came here to thank this guy. Your software- GS Richcopy 360 worked really well, I recently used to to migrate my server. Thanks again man!
Great, sharing is caring.
Baretto is right..I’ve been using gs richcopy360 too and it is wonderful – supports long file path names as well as NTFS permissions.