Share via


Migrating a 2003 Domain Controller with DHCP to 2012R2

So as the life of Windows 2003 is finally coming to an end, I am seeing a big push for domain upgrades and the pitfalls that come with it. So I created a walkthrough to help that process go smoother and to help avoid the common issues.

I included DHCP in this posting due to the many servers I see that are Domain Controllers and DHCP servers. If you are getting DHCP from another device like another server or router, the steps outlined are still applicable as far as changing the DNS server to point to the new DC before you decommission the old DC.


Current Environment

My environment at the start of the migration:DC01.matrix.local

  • OS: Windows 2003 x86 SP1
  • IP: 192.168.90.1
  • Subnet: 255.255.255.0
  • GW: None – completely isolated environment
  • DNS: 192.168.90.1 Services for clients – DHCP, DNS, Active Directory
  • DHCP looks like:

http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw1.png

 

Note

Excluded the range 192.168.90.1 – 192.168.90.50 as this is how I would normally deploy DHCP – Statically needed IP Addresses would be within the range that was excluded. Examples would be Routers, Servers and Printers.

 

  • DNS zones look like this:

http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw2.png

Really everything at this point is default with the exception that I added the reverse zone. Matrix.local and the reverse zone replicated to all DNS servers in domain and the _msdcs zone is replicated to all dns servers in forest.

Client01.matrix.local

  • OS: Windows 8.1 (I selected this one as client machines tend to get the new stuff especially now with the BYOD or Bring Your Own Device movement)
  • IP: Dynamically assigned by DC01
  • **Subnet:**Dynamically assigned by DC01
  • GW: None – completely Isolated environment Client01 is joined to the domain and is able to authenticate, access dns, and gets an IP – the user that is authenticated is Mr. Testy Tester or Matrix\TTester
  • DC02.matrix.local
  • OS: Windows 2012R2
  • IP: Dynamically assigned by DC01
  • Subnet: Dynamically assigned by DC01
  • GW: None – completely isolated environment
  • DNS: 192.168.90.1

Okay, let's review some configuration items to get us started.

Active Directory

It's always best to review the health of active directory to make sure there is no gotchas to sneak up on you. If not installed and you have the install cd for 2003 install the support tools from CD:\Support\Tools\SUPTools.msi or downloaded from http://www.microsoft.com/en-us/download/details.aspx?id=15326.

  1. From a command prompt run netdom query fsmo as below:

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw3.png

  2. This lets you know where the fsmo's are located – If any of these has an error where it is unable to locate the role holder, stop because you will need to probably need to seize the role and perform a metadata cleanup. Seize FSMO Role - http://support.microsoft.com/kb/255504/en-us

  3. Run is a "net share"

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw4.png

    These two shares are where your group policies are stored and if they are missing your DC will not act as a domain controller and will not authenticate users.

  4. Run a repadmin /showreps – if you currently only have 1 dc I would expect the output to look like:

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw5.png

  5. Check the Eventlogs for errors relating to Active Directory, File Replication Service, Netlogon, Time

    1. Directory Service
    2. System
    3. File Replication Service

If everything appears normal then we are ready to introduce our 2012 R2 server into the environment. If there are errors stop now and investigate!

 

 


Setup the new 2012 R2 Server

  1. Statically set the IP Address of the server. My IP Address will be 192.168.90.2 / Subnet will be 255.255.255.0 / No Gateway/ DNS 192.168.90.1

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw6.png

     

    Note

I don't have a gateway because my test environment does not have internet access, your environment likely does so you will likely have a gateway.

  1. Rename the server and join the domain with your 2012R2 server

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw7.png

  2. Once you click OK, you will be prompted for credentials – put the credentials of your domain admin account in and press ok. If you get a message like:

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw8.png

    Once the server reboots, sign in as the domain admin account Note: If you are using the default Administrator account, sign into Windows with Domain\Administrator as Windows by default will change the domain to local when it detects a local account with the same name.

  3. Once Server Manager comes up, Click Manage, Add Roles and Features

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw9.png

  4. The Add Roles and Features Wizard will come up - Click Next

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw10.png

  5. Make sure Role-based or feature-based installation is selected and click next.

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw11.png

  6. Verify your sever is the selected server then click next

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw12.png

  7. Select Active Directory Domain Services, on the popup click Add Features, then Click next

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw13.png

  8. Click next on the features page

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw14.png

  9. Click Next on the AD DS page

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw15.png

  10. Then Click Install

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw16.png


Promote Server to a Domain Controller:

  1. Once that completes Click Close, You will be back on the Server Manager Screen – Click the Flag on the Top Menu and select the link to promote the server to a domain controller:

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw17.png

  2. This will start the process to make this a domain controller

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw18.png

    Make sure the Domain information, Add a domain controller to an existing domain, and the current domain administrator is correct.

  3. This would be a good time to make sure that the user doing the promotion is a member of the Enterprise Admins and Schema Admins group on the 2003 domain controller.

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw19.png

    Being a member of these 2 groups will allow you to promote the DC into the domain and perform the necessary schema/forest/domain updates needed for 2012 R2.

  4. Clicking next on the Active Directory Domain Services Configuration Wizard I received an error

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw20.png

    Fixing this issue is fairly simple, we just need to raise the Domain and Forest Functional to 2003

  5. Open Domains and Trusts on the 2003 DC Right click on the Active Directory Domains and Trusts, Select Raise Forest Functional Level If you get a message like:

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw21.png

    You will need to do the domain functional level first.

  6. Open Active Directory Users and Computers Right click on the domain in the left pain and select Raise Domain Functional Level

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw22.png

    Select Windows Server 2003 from the dropdown and click Raise

  7. Once that completes, and if you have more than one domain controller, replication completes. Go back to Domains and Trusts Right click and raise Forest Functional Level

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw23.png

    Again if there are more than one domain controller it may take a minute to replicate, if not than this change is really quick.

  8. We are now ready to try the promotion process again, Click Next on the deployment configuration

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw24.png

     

    Note

We get a warning stating that there are no 2008 domain controllers in the domain so this server will be unable to become a read-only domain controller. This is just a warning and nothing to be concerned about.

 
  1. Type in the Directory Services Restore Mode password and click next

  2. Under DNS option there is another warning about DNS delegation, ignore that and click next

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw25.png

  3. Additional Options: Click Next

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw26.png

  4. Under Paths, Modify any paths or accept the defaults and click Next

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw27.png

  5. Under Preparation Options click Next

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw28.png

  6. Under Review Options, Click Next

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw29.png

  7. After the Prerequisite Check Runs Click Install

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw30.png

  8. After install is clicked the forest and domain will be prepped for 2012. Once the install is completed and the server reboots and will then come up as a domain controller in your domain.

 


Verify Active Directory on the New Server:

  1. One of the first things to validate is that the Netlogon and Sysvol shares Run net share from PowerShell

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw31.png

  2. Run repadmin /showreps – notice we get a lot more information this time

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw32.png

  3. Lets also check that on the 2003 server

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw33.png

  4. Lets check DNS on the new 2012R2 server

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw34.png

    What you want to look at here is to make sure that both DC's have SRV records inside dns. SRV records is how clients locate available DC's in which to use for authentication. You can also validate that the same records appear on the 2003 server.

  5. Check the event logs

  6. Open Active Directory Users and computers, create a test user validate that it replicates from 2012 to 2003, then rinse and repeat from 2003 to 2012

  7. Open Group Policy Management console and validate all group policies that are expected to be there are there


Decommission 2003 Server

Transfer the FSMO roles to new server

  1. PDC - http://technet.microsoft.com/en-us/library/cc739670(v=WS.10).aspx
  2. RID - http://technet.microsoft.com/en-us/library/cc781063(v=ws.10).aspx
  3. Infrastructure - http://technet.microsoft.com/en-us/library/cc782485(v=ws.10).aspx
  4. Domain Naming Master - http://technet.microsoft.com/en-us/library/cc738685(v=ws.10).aspx
  5. Schema - http://technet.microsoft.com/en-us/library/cc759254(v=ws.10).aspx

Transfer DHCP services to the new server

  1. Install the feature on the 2012R2 server
  2. In Server Manager, Click Manage, Add Roles and Features
  3. Role-based or Feature-based – Click Next
  4. Validate 2012 is selected Click Next
  5. Select DHCP from the list, Click Add features from the Pop-up, Click next
  6. Click Next
  7. Click Next
  8. Click Install
    1. Configure the scope for DHCP (I deliberately broke this up into three distinct steps, Setting up DHCP on the new server, deactivating the old server and Activating the new server – this is to allow the cutover to be planned according to a migration schedule. In an actual migration I would lower the lease times to something really short 2 days to allow clients to renew their leases from the new server without administrative intervention

    2. Click Complete DHCP configuration

      http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw35.png

    3. Click Next

      http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw36.png

    4. Select Skip AD Authorization (We already have an Authorized DHCP server)

      http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw37.png

    5. Select Commit

    6. Select Tools, DHCP

      http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw38.png

    7. In DHCP MMC, Drill down to IPv4, Right Click and select New Scope

      http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw39.png

    8. Under New Scope Wizard select Next

    9. Name your new Scope and click Next

      http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw40.png

    10. Set your Range up and Click Next

      http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw41.png

    11. Set up your Exclusion Range

      http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw42.png

    12. Setup your Lease Duration Time

      http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw43.png

    13. Select Yes to configure the scope Options, Select Next

      http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw44.png

    14. Set your gateway address

      http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw45.png

    15. On Domain Name and DNS Servers, Remove any old DNS servers so that only the new 2012 Server is listed

      http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw46.png

    16. Leave Wins Blank, Click Next

    17. On Activate Scope, Select No, I will activate this scope later, Then Select Next

      http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw47.png

    18. Click Finish


Deactivate the 2003 DHCP Server

  1. Right Click the Scope and Select Deactivate – I am deactivating the scope – in case the server is reauthorized later – the server will not automatically start handing out IP's

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw48.png

  2. Right Click the Server and Unauthorize

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw49.png


Turn on DHCP on the new 2012R2 Server

  1. In the DHCP MMC, Right Click the Server Name and select Authorize

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw50.png

  2. Right Click the Scope and Select Activate

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw51.png

  3. DHCP Console should appear similarly to:

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw52.png


Validate clients receive DHCP Address from the new server

  1. Check current settings, notice that the lease from the old server is still good so this client has not yet requested a renewal on the lease, this is important because the DNS server for the client has changed – if we were to demote the 2003 server at this time the clients would have issues resolving and authenticating

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw53.png

  2. On the client run IPConfig /Release

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw54.png

  3. On the Client run IPconfig /renew

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw55.png

  4. Then Validate that the 2012 R2 server handed the clients IP Address

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw56.png

Once all FSMO's, DHCP to all clients have been updated shut down the old server for a few days to make sure nothing was missed and that clients are able to authenticate to Active Directory, Get to the internet, etc


Last step - Demote 2003 server

  1. Run DCPromo on 2003, Click Next

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw57.png

  2. Do not select this is the last domain controller in the domain, Click Next

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw58.png

  3. Type a new Local Administrator Password, Click Next

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw59.png

  4. Click Next on the Summary Screen

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw60.png

  5. Active Directory will then be removed, and the server will be rebooted

    http://windorks.files.wordpress.com/2014/01/012514_2334_upgradingaw61.png

**Conclusion:**Preparing for a migration and validating the environment is healthy, will save you many more hours of frustration, lost productivity, potentially revenue. While this is not the end of tasks that need to be done, Time Service comes to mind - doing these simple things will make it easier.

 


See also

Active Directory: Glossary