Delete Failed DCs from Active Directory



Similar documents
Active Directory Restoration

Windows Server 2003 Service Pack 1 (SP1) or later service packs Enhanced version of Ntdsutil.exe

Installing Active Directory on Windows Server 2008 by Daniel Petri - January 8, 2009 Printer Friendly Version

Setting up Active Directory Domain Services

Searching for accepting?

How to install Small Business Server 2003 in an existing Active

Core Active Directory Administration

Setting Up a Backup Domain Controller

How to. Install Active Directory. Server 2003

In the Active Directory Domain Services Window, click Active Directory Domain Services.

SETTING UP ACTIVE DIRECTORY (AD) ON WINDOWS 2008 FOR EROOM

Migrating Active Directory to Windows Server 2012 R2

Active Directory Installation on Windows Server 2012

Microsoft Virtual Labs. Active Directory New User Interface

Installing Active Directory

Active Directory backup and restore with Acronis Backup & Recovery 11. Technical white paper. o o. Applies to the following editions: Advanced Server

How do I install Active Directory on my Windows Server 2003 server?

Windows Domain Network Configuration Guide

Windows.NET Beta 3 Active Directory New Features

Module 2: Implementing an Active Directory Forest and Domain Structure

Installation of MicroSoft Active Directory

Network System Management. Creating an Active Directory Domain

Microsoft Active Directory (AD) Service Log Configuration Guide

How to Install the Active Directory Domain Services (AD DS) Role in Windows Server 2008 R2 and Promote a Server to a Domain Controller

Creating a Domain Tree

Active Directory Diagnostic Tool

Backing Up & Restoring ADI DNS

SRT210 Lab 01 Active Directory

ILTA HAND 6B. Upgrading and Deploying. Windows Server In the Legal Environment

Presenter s name here Date of presentation (optional) Windows Security and Domains for Experion

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Active Directory Disaster Recovery Workshop. Lab Manual Revision 1.7

The Windows Server 2003 Environment. Introduction. Computer Roles. Introduction to Administering Accounts and Resources. Lab 2

Course 6425C: Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain MOC 6425

Protecting Active Directory

Investigating the Use of Virtual Servers to Improve the Restoration Process of an Active Directory Forest

You need to identify the minimum password length required for each marketing user. What should you identify?

Other documents in this series are available at: servernotes.wazmac.com

6425C - Windows Server 2008 R2 Active Directory Domain Services

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

NE-6425C Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Websense Support Webinar: Questions and Answers

Course 6425B: Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Chapter 3: Building Your Active Directory Structure Objectives

Introduction. Versions Used Windows Server 2003

Backup and Disaster Recovery Restoration Guide

new Business Online Technical Troubleshooting Guide

How to troubleshoot Active Directory operations that fail with error 8456 or 8457: "The...

Configuring and Troubleshooting Windows 2008 Active Directory Domain Services

VMware and VSS: Application Backup and Recovery

MS-6425C - Configuring Windows Server 2008 Active Directory Domain Services

Acronis Backup & Recovery 11.5 Quick Start Guide

Study Guide Preview Cert MSCert Microsoft Cert-1Z0-050 DBCert Oracle Cert CompCert CompTIA

Installation Troubleshooting Guide

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Implementing Domain Name Service (DNS)

UNIT 5 ADDITIONAL PROJECTS BEFORE YOU BEGIN. Installing a Replica Domain Controller. You want to improve fault tolerance and performance on

Course 6425C: Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

LearnKey's Windows Server 2003 Active Directory Infrastructure with Dale Brice-Nash

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

MCSE: server infrastructure Syllabus

Configuring Sponsor Authentication

BMC Performance Manager Active Directory Best Practices White Paper

Active Directory backup and restore with Acronis Backup & Recovery 10

Configuring Windows Server 2008 Active Directory

Migrate to Windows Small Business Server 2011 Standard from Windows Small Business Server 2003

Creating a New Domain Tree in the Forest

Lab 3-3 Installing Active Directory

Using Windows 2008 RADIUS Authentication with Tripp Lite SNMPWEBCARD

Migrate to Windows Small Business Server 2011 Standard from Windows Small Business Server 2008

70-417: Upgrading Your Skills to MCSA Windows Server 2012

Dell Compellent Storage Center

6425C: Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Copyright

Active Directory Syncing

The safer, easier way to help you pass any IT exams. Exam : Designing and Implementing a Server Infrastructure.

How the Active Directory Installation Wizard Works

Exam : Installing and Configuring Windows Server 2012

Implement and Admin Directory Services Infrastructure (70-217)

Course 6425C: Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

DigitalPersona Pro Server for Active Directory v4.x Quick Start Installation Guide

Configuring and Troubleshooting Windows Server 2008 Active Directory Domain Services

Create a printer preference in the Default Domain Policy that sets a default printer as laser5.nutex.com and designate the policy as Enforced.

Recovery Manager for Active Directory Forest Edition 8.6.4

MCSE Objectives. Exam : TS:Exchange Server 2007, Configuring

Microsoft Exam

How To Install And Configure Windows Server 2003 On A Student Computer

R4: Configuring Windows Server 2008 Active Directory

NetIQ Advanced Authentication Framework - MacOS Client

Guide to deploy MyUSBOnly via Windows Logon Script Revision 1.1. Menu

Module 10: Maintaining Active Directory

Transcription:

Page 1 of 5 Delete Failed DCs from Active Directory by Daniel Petri - January 8, 2009 How can I delete a failed Domain Controller object from Active Directory? When you try to remove a domain controller from your Active Directory domain by using Dcpromo.exe and fail, or when you began to promote a member server to be a Domain Controller and failed (the reasons for your failure are not important for the scope of this article), you will be left with remains of the DCs object in the Active Directory. As part of a successful demotion process, the Dcpromo wizard removes the configuration data for the domain controller from Active Directory, but as noted above, a failed Dcpromo attempt might leave these objects in place. The effects of leaving such remains inside the Active Directory may vary, but one thing is sure: Whenever you'll try to re-install the server with the same computername and try to promote it to become a Domain Controller, you will fail because the Dcpromo process will still find the old object and therefore will refuse to re-create the objects for the new-old server. In the event that the NTDS Settings object is not removed correctly you can use the Ntdsutil.exe utility to manually remove the NTDS Settings object. If you give the new domain controller the same name as the failed computer, then you need perform only the first procedure to clean up metadata, which removes the NTDS Settings object of the failed domain controller. If you will give the new domain controller a different name, then you need to perform all three procedures: clean up metadata, remove the failed server object from the site, and remove the computer object from the domain controllers container. You will need the following tool: Ntdsutil.exe, Active Directory Sites and Services, Active Directory Users and Computers. Also, make sure that you use an account that is a member of the Enterprise Admins universal group. Caution: Using the Ntdsutil utility incorrectly may result in partial or complete loss of Active Directory functionality. To clean up metadata At the command line, type Ntdsutil and press ENTER. C:'WINDOWS>ntdsutil ntdsutil: At the Ntdsutil: prompt, type metadata cleanup and press Enter. ntdsutil: metadata cleanup At the prompt, type connections and press Enter. connections server connections: 4. At the server connections: prompt, type connect to server <servername>, where <servername> is the domain controller (any functional domain controller in the same domain) from which you plan to clean up the metadata of the failed domain controller. Press Enter.

Page 2 of 5 server connections: connect to server server100 Binding to server100... Connected to server100 using credentials of locally logged on user. server connections: Note: Windows Server 2003 Service Pack 1 eliminates the need for the above step. 5. Type quit and press Enter to return you to the prompt. server connections: q 6. Type select operation target and press Enter. Select operation target 7. Type list domains and press Enter. This lists all domains in the forest with a number associated with each. list domains Found 1 domain(s) 0 - DC=dpetri,DC=net 8. Type select domain <number>, where <number> is the number corresponding to the domain in which the failed server was located. Press Enter. Select domain 0 No current site No current server 9. Type list sites and press Enter. List sites Found 1 site(s) 0 - CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=dpetri,DC=net 10. Type select site <number>, where <number> refers to the number of the site in which the domain controller was a member. Press Enter. Select site 0 Site - CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=dpetri,DC=net No current server 1 Type list servers in site and press Enter. This will list all servers in that site with a corresponding number. List servers in site Found 2 server(s) 0 - CN=SERVER200,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=d 1 - CN=SERVER100,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=d 1 Type select server <number> and press Enter, where <number> refers to the domain controller to be removed.

Page 3 of 5 Select server 0 Site - CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=dpetri,DC=net Server - CN=SERVER200,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration DSA object - CN=NTDS Settings,CN=SERVER200,CN=Servers,CN=Default-First-Site-Name,CN= DNS host name - server200.dpetri.net Computer object - CN=SERVER200,OU=Domain Controllers,DC=dpetri,DC=net 1 Type quit and press Enter. The Metadata cleanup menu is displayed. q 14. Type remove selected server and press Enter. You will receive a warning message. Read it, and if you agree, press Yes. Remove selected server "CN=SERVER200,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=dpet At this point, Active Directory confirms that the domain controller was removed successfully. If you receive an error that the object could not be found, Active Directory might have already removed from the domain controller. 15. Type quit, and press Enter until you return to the command prompt. To remove the failed server object from the sites In Active Directory Sites and Services, expand the appropriate site. Delete the server object associated with the failed domain controller. To remove the failed server object from the domain controllers container In Active Directory Users and Computers, expand the domain controllers container. Delete the computer object associated with the failed domain controller. Windows Server 2003 AD might display a new type of question window, asking you if you want to delete the server object without performing a DCPROMO operation (which, of course, you cannot perform, otherwise you wouldn't be reading this article, would you...) Select "This DC is permanently offline..." and click on the Delete button.

Page 4 of 5 4. AD will display another confirmation window. If you're sure that you want to delete the failed object, click Yes. To remove the failed server object from DNS In the DNS snap-in, expand the zone that is related to the domain from where the server has been removed. Remove the CNAME record in the _msdcs.root domain of forest zone in DNS. You should also delete the HOSTNAME and other DNS records. If you have reverse lookup zones, also remove the server from these zones. Other considerations Also, consider the following: If the removed domain controller was a global catalog server, evaluate whether application servers that pointed to the offline global catalog server must be pointed to a live global catalog server. If the removed DC was a global catalog server, evaluate whether an additional global catalog must be promoted to the address site, the domain, or the forest global catalog load. If the removed DC was a Flexible Single Master Operation (FSMO) role holder, relocate those roles to a live DC. If the removed DC was a DNS server, update the DNS client configuration on all member workstations, member servers, and other DCs that might have used this DNS server for name resolution. If it is required, modify the DHCP scope to reflect the removal of the DNS server. If the removed DC was a DNS server, update the Forwarder settings and the Delegation settings on any other DNS servers that might have pointed to the removed DC for name resolution. Related articles You may find these related articles of interest to you: How to Install Active Directory on Windows 2000 How to Install Active Directory on Windows 2000 (for Lamers)

Page 5 of 5 How to Install Active Directory on Windows 2003 How to Install a Replica DC in an Existing AD Domain on Windows 2000 How to Install a Replica DC in an Existing AD Domain on Windows Server 2003 Install DC from Media in Windows Server 2003 Joining a Domain in Windows XP Pro Troubleshooting Dcpromo Errors Unattended Installation of Active Directory Windows 2003 ADPrep Windows 2003 ADPrep Fix for Exchange 2000 Windows 2003 Domain Controller Rename Windows 2003 Domain Rename Links Delete extinct server metadata; Windows Server 2003, Enterprise Edition How to remove data in Active Directory after an unsuccessful domain controller demotion - 216498 Related Whitepapers and Reading Unplanned Work: The Silent Killer TriGeo Security Information Management in the Payment Card Industry: Using TriGeo SIM To Meet PCI Re The Case for Security Information and Event Management (SIEM) in Proactive Network Defense Related Articles Active Directory SRV Records Unattended Installation of Active Directory How to Install Active Directory on Windows 2000 (for Lamers) How to Install Active Directory on Windows 2000 (for idiots) How to Install Active Directory on Windows 2000 (for idiots) How to Restore Windows Server 2003 Active Directory Active Directory Search Limit Planning FSMO Roles in Active Directory Terms of Use Privacy Policy Contact Advertise 2009 Blue Whale Web Inc.