• Home
  • About us
  • Contact
  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Welcome to www.DoitFixit.com

www.doitfixit.com

  • Microsoft
  • Fortinet
  • Symantec
  • Office 365
  • Azure
  • Others
  • Show Search
Hide Search

Ntdsutil Remove Crashed Domain Controller Step by Step

November 11, 2015 By Damitha Anuradha 2 Comments

Ntdsutil.exe is a command-line tool that provides management facilities for Active Directory Domain Services (AD DS) and Active Directory Lightweight Directory Services (AD LDS). You can use the ntdsutil commands to perform database maintenance of AD DS, manage and control single master operations, and remove metadata left behind by domain controllers that were removed from the network without being properly uninstalled. This tool is intended for use by experienced administrators. (Ntdsutil @ Technet)
First I will run below command to get all the domain controllers installed on the domain.
netdom query dc

Run below command to get FSMO role holders in a domain.

netdom query fsmo

Remove Crashed Domain Using Ntdsutil_www.doitfixit.com (1)

Now open the command prompt with administrative rights and follow below commands to remove a crashed domain controller from the domain.

ntdsutil
metadata cleanup
connections
connect to server <other active dc name>
q
select operation target
list domains
select domain <number> (the domain number shows after above command)
list sites
select site <number> (site number shows after above command)
list servers in site
select server <number> (the dc number which is going to remove and appeared in above step)
q
remove selected server

Remove Crashed Domain Using Ntdsutil_www.doitfixit.com (2)

See the domain server name carefully and click Yes.
Remove Crashed Domain Using Ntdsutil_www.doitfixit.com (3)

Selected server removed from the server.

Remove Crashed Domain Using Ntdsutil_www.doitfixit.com (4)

Go to Active Directory Users and Computers and remove the same server if it still showing in the controllers.
Remove Crashed Domain Using Ntdsutil_www.doitfixit.com (5)

Go to Active Directory Sites and Services -> Site name -> Servers and remove the crashed domain server.
Remove Crashed Domain Using Ntdsutil_www.doitfixit.com (6)

Open DNS Manager and remove DNS records as shown in below two screen shots.
Remove Crashed Domain Using Ntdsutil_www.doitfixit.com (7)
Remove Crashed Domain Using Ntdsutil_www.doitfixit.com (8)
Let’s run netdom query again to list out all domain controllers in the domain.
Remove Crashed Domain Using Ntdsutil_www.doitfixit.com (10)

Reader Interactions

Comments

  1. Ivan Pc Tek says

    July 26, 2017 at 6:36 am

    Excellent!!! Thank you for sharing your knowledge!

    Reply
  2. Fred Flint says

    August 1, 2024 at 12:19 am

    Yes worked perfectly

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • Fixing the “A user with this name already exists. Use a different name.” Error in Microsoft 365
  • Veeam Backup – Failed to prepare guests for volume snapshot
  • How to Configure/Integrate FortiClient EMS with FortiAnalyzer
  • Backup Hyper-V Virtual Machines with Pass-Through Disks
  • Slow Network Speed with Hyper-V Virtual Machines on Windows Server Server 2019
  • Block MS Exchange Server OWA access from Internet
  • Error 1168 – The specified product key could not be validated.
  • Unable to Enable Desktop Icons after Joining to the Domain
  • Veritas BackupExec – A backup set was created which contains no data 0xe00084b7
  • Download Offline Address Book – Unexpected Error has occurred