IT STORYs

Windows 2008 R2 EOS 에 따른 2012 R2 DC 마이그레이션 가이드 본문

Windows Server

Windows 2008 R2 EOS 에 따른 2012 R2 DC 마이그레이션 가이드

295~ 2019. 6. 25. 13:01

Migrating Domain Controllers From Server 2008 R2 to Server 2012 R2

91 Replies

In this article, I have documented the steps I took to update our two domain controllers to Server 2012 R2 from Server 2008 R2.  While this can be considered a tutorial, it is more a reflection of what I did during my migration process.  This guide assumes you have already made backups of your environment, all Windows Active Directory Domain Controllers in the forest are running Server 2003 or later, and we will be recycling (reusing) the same two servers you deployed.  Last, Microsoft strongly recommends we do a clean install and not directly upgrade each server, so we will decommission a DC, reinstall windows, and then redeploy the DC until the entire environment has been upgraded.

  1. Prepare the AD Schema for Server 2012 R2
    1. Mount the Server 2012 R2 installation disk on one of your Domain Controllers
    2. Open up a command prompt with Administrative Privileges and navigate to the /support/adprep folder on the installation media.
      1. Click Start, type cmd, right click select Run as administrator
      2. Execute the command: d:
      3. Execute the command: cd d:\support\adprep
    3. Execute the following command (don’t close out of this until after we verify the schema version in an upcoming step):
      1. adprep /forestprep
      2. Type the letter C and press the enter key to begin the process

    4. Execute the following command:
      1. adprep /domainprep


    5. Verify the schema version has been updated
      1. Click Start and search for regedit

    6. Open up regedit and navigate to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NTDS\Parameters
    7. Verify the Schema Version value matches the last entry shown in your upgrade results.  In my case, the Schema Version should be 69.


  2. Demote and decommission secondary domain controller
    1. Click Start, Run…
    2. Type dcpromo and click OK
    3. Click Next > on the Welcome page
    4. If the domain controller has the global catalog service, make sure your primary DC also has the service enabled and click OK.  This can be done by opening up Active Directory Sites and Services and viewing the services for each domain controller.
    5. Make sure the Delete this domain because this server is the last domain controller in the domain is UNCHECKED, and click Next >

    6. Type in a new password to be used for the Local Administrator account the machine will contain after it is demoted.
    7. Click Next > on the Summary page
    8. Check the Reboot on completion box to restart the server after the service has been removed
    9. Log back into the DC upon reboot and open up Server Manager

    10. In Roles Summary, click Remove Roles

    11. Click Next > on the Before You Begin page

    12. Uncheck Active Directory Domain Services and DNS Server (if the role is installed) and click Next >

    13. Click Remove

    14. Click Close

    15. Select Yes on the Do you want to restart now? dialog box
    16. Log back into the DC upon reboot and you should greeted by a Removal Results window.  Let the process finish and select Close upon removal success.
    17. Disjoin the machine from the domain
      1. Click Start, right click Computer, select Properties

      2. Click Change settings

      3. Click Change… on the System Properties page
      4. Check Workgroup, type in a workgroup name, and click OK

      5. Click OK on the warning dialog
      6. Click OK on the Welcome to the workgroup dialog
      7. Click OK on the restart dialog
      8. Click Close on the System Properties window
        (oops, forgot to make a screenshot!)
      9. Click Restart Later on the Microsoft Windows dialog box
      10. Shutdown the machine
    18. Format the decommissioned machine, reinstall a clean copy of Server 2012 R2, and join the machine to the domain.
  3. Add first Server 2012 R2 Domain Controller
    1. At this point, you should have one Server 2008 R2 Domain Controller and a blank Server 2012 R2 machine joined to the domain ready for the Active Directory services.  If you are at this point, continue on, if not, you might want to read back a couple steps and see where things ventured off course.
    2. Start Server Manager on your new Server 2012 R2 machine.
    3. Select Manage in the top right and select Add Roles and Features

    4. Click Next > on the Before you begin screen
    5. Click Next > on the Select installation type screen
    6. Ensure your new server is selected and click Next >

    7. Check the box next to Active Directory Domain Services

    8. On the Add features that are required for Active Directory Domain Services? dialog, click the Add Features button
    9. Click Next >

    10. Click Next >

    11. Check the box that says Restart the destination server automatically if required
      (Click Yes on the restart dialog if it pops up)
    12. Click the Install button
    13. Once the install is done, click the Close button
    14. Next, head back to the Server Manager screen and select the warning icon with the flag; then select Promote this server to a domain controller.

    15. On the Deployment Configuration page, make sure Add a domain controller to an existing domain is checked and hit Next >

    16. Check Domain Name System (DNS) server, Check Global Catalog (GC), and uncheck Read only domain controller (RODC).  Enter a strong password to be used to access Directory Services Restore Mode and click Next >

    17. Click Next > on the DNS Options page
    18. Click Next > on the Additional Options page, or if you would like, you can manually select a domain controller to replicate data from and then hit Next >.
    19. Click Next > on the Paths page
    20. Click Next > on the Review Options page
    21. Click Install on the Prerequisites Check page
    22. Once the domain controller reboots after installation, open up Server Manager and select Tools, Active Directory Users and Computers

    23. Expand your Domain and select Domain Controllers; ensure your new machine shows up here.
    24. Next, verify DNS works properly
      1. Go back to Server Manager, select Tools, DNS

      2. Expand your server, Forward Lookup Zones, and right click on your domain name and select Properties

      3. Select the Name Servers tab and ensure all DCs are listed
  4. Next, we need to verify the FSMO (Flexible Single Master Operations) roles are stored on our other server 2008 DC
    1. On the new Server 2012 R2 DC we joined, open up a command prompt with administrative privileges.
    2. Execute the following command to verify FSMO roles are on our 2008 DC:
      netdom query fsmo

  5. Next, we need to transfer the FSMO roles from our primary DC to our new one
    1. Execute the following command using the same command prompt in the previous steps: ntdsutil

    2. Type roles when prompted and hit enter
    3. Type connections when prompted and hit enter
    4. Type connect to server server2012DC.mydomain.com, where server2012DC is the new DC we just deployed, when prompted and hit enter
    5. Type quit and hit enter
    6. Type transfer schema master and hit enter
    7. Click Yes on the Role Transfer Dialog for the Schema Master role
    8. Type transfer naming master and hit enter
    9. Click Yes on the Role Transfer Confirmation Dialog for the Naming Master role
    10. Type transfer PDC and hit enter
    11. Click Yes on the Role Transfer Configuration Dialog for the Primary Domain Controller role
    12. Type transfer RID master and hit enter
    13. Click Yes on the Role Transfer Configuration Dialog for the RID master role
    14. Type transfer infrastructure master and hit enter

    15. Click Yes on the Role Transfer Configuration Dialog for the Infrastructure Masterrole
    16. Type quit and hit enter
    17. Type quit and hit enter
    18. Execute the following command to ensure the FSMO services are on the new Server 2012 R2 machine: netdom query fsmo

  6. At this point, you should have a Server 2012 R2 DC with the FSMO roles and a secondary 2008 R2 Domain Controller.  If not, please go back and complete the steps to get to this point.
  7. Optional Step: After upgrading the first DC, you may want to reconfigure the machine to keep its time in sync with an external source.  To do this, please follow my guide here: http://jackstromberg.com/2013/10/configuring-external-time-source-on-your-primary-domain-controller/
  8. Next, decommission the last Server 2008 R2 domain controller that used to function as the primary DC.
    1. Follow the same instructions in Step 2 above called Demote and decommission secondary domain controller
  9. Next, add the machine back to the domain
    1. Follow the same instructions in Step 3 above called Add first Server 2012 R2 Domain Controller
  10. At this point, your environment should be up and running with Windows Server 2012 R2!  You can optionally transfer the FSMO roles back to your “primary” DC that you had before, or continue on with the roles left on the current DC.

Notes

Official information on removing a domain controller from the domain can be found on Microsoft’s website here: http://technet.microsoft.com/en-us/library/cc771844(v=ws.10).aspx

Comments