Solved

How to reinstall a Server 2012 Primary Domain Controller? I got a secondary server 2012 domain controller also.

Posted on 2014-01-24
6
481 Views
Last Modified: 2014-02-12
Hi EE,

I got 2 domain controllers, primary and secondary. Both running in windows server 2012.
Please provide me steps to do before i perform reinstallation.

Thank you
Shamil
0
Comment
Question by:Shamil Mohamed
  • 3
  • 3
6 Comments
 
LVL 23

Expert Comment

by:Mysidia
ID: 39808097
Follow these steps to demote the domain controller to a member server  before reinstallation:
  http://technet.microsoft.com/en-us/library/jj574104.aspx#BKMK_Demote

HOWEVER,  before you demote... there is one thing to check:

In general; If the domain controller to be reinstalled holds any of the domain's  five FSMO roles, you should gracefully transfer the roles to   the second DC,  before demoting the first DC.

Connect to the  server to be taking over as administrator,  do  Cmd+X  OR   Start > Run > Cmd
Right click CMD, choose to run As Administrator.

At the command prompt, enter these commands:

dsquery   server  /hasfsmo   pdc
dsquery   server  /hasfsmo   rid
dsquery   server  /hasfsmo   infr
dsquery   server  /hasfsmo   name
dsquery   server  /hasfsmo   schema

The command will tell you WHICH server currently has the role.


IF   DC2 has all of these roles, then there is nothing furtheryou need to do.


IF the domain controller you will be reinstalling has one or more of the roles,  then we need to start the proper console program,  AND  transfer the role.


If you need to transfer the SCHEMA role:

First type:   regsvr32 schmmgmt.dll

At the command prompt,  to register the SCHEMA management tools.

Next type MMC,  press Enter

File > Add/Remove Snapins
select "Active Directory Schema"
Click Add
Click OK/Close


Under the console root, right click  on   "Active Directory Schema [DCXXXX.example.local]"

Chose "Change Active Directory Domain Controller"

Choose "This domain controller or AD LDS Instance"
Select the backup domain controller that the role is to be moved to,  from the list, click OK.

Click OK to the warning.

Right click  "Active Directory Schema [DC2.example.local]"  again
Choose "OPERATIONS MASTER"

Click the CHANGE button,  to  transfer Schema  master role to DC2.

TO Transfer RID, PDC Emulator, or Infrastructure Masters;   Open Active Directory Users and Computers.
       The procedure is the same as with the SCHEMA master.

    Right click "Users and Computers",   choose 'Change Domain Controller', select DC2.
    Right click again,  Operations Manager,   select the proper tab, and click the CHANGE button.


TO TRANSFER  "NAME"  master
  Open  the "Active Directory Domains and Trusts" console.
  From within this console,  the procedure is the same as with the Schema master.
0
 
LVL 1

Author Comment

by:Shamil Mohamed
ID: 39808115
Thanks Bro. now all the FSMO roles are moved to secondary DC. Can i proceed with removal process of Primary domain controller.??
0
 
LVL 23

Expert Comment

by:Mysidia
ID: 39809390
At that point, you should be ready to  demote the domain controller to a member server  and
migrate off any other special applications or services you have running on that server,  DHCP, file shares etc.

Something important to check, will be the list of DNS server IP addresses in use on your clients.

Either complete the reinstallation in a timely manner,   adjust clients' DNS server list temporarily,  or

Network access may be impaired or slow, for client machines, until the reinstallation of the domain controller is done, if the primary domain controller's IP address is still listed as  the first DNS server used by client machines and member servers.
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
LVL 1

Author Comment

by:Shamil Mohamed
ID: 39811405
Mistake again happened:

Rebooting after removing certificate services server restarted back into Core.

Anyway please get me a PS command to reinstall GUI..

Thank you.

Shamil
0
 
LVL 23

Accepted Solution

by:
Mysidia earned 500 total points
ID: 39813942
Import-Module ServerManager
Install-WindowsFeature Server-GUI-Mgmt-Infra,Server-GUI-Shell
0
 
LVL 1

Author Comment

by:Shamil Mohamed
ID: 39855288
Even After successfully moving all FSMO roles to newly installed server still clients are failed to logon, with an error (cannot find login servers).

Why ? Any idea
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Understanding the various editions available is vital when you decide to purchase Windows Server 2012. You need to have a basic understanding of the features and limitations in each edition in order to make a well-informed decision that best suits y…
Resolve DNS query failed errors for Exchange
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now