Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

Windows Server 2008 : Promoting and Demoting a Domain Controller - Demoting a DC with dcpromo, Using dcpromo with an unattend File

- How To Install Windows Server 2012 On VirtualBox
- How To Bypass Torrent Connection Blocking By Your ISP
- How To Install Actual Facebook App On Kindle Fire
4/7/2013 6:20:46 PM

1. Demoting a DC with dcpromo

If you run dcpromo on a DC, it recognizes that the computer is already a DC hosting Active Directory. It then prompts you to remove Active Directory. The following steps show how to remove Active Directory from the last domain controller in a domain.

StepAction
1.Launch a command prompt with administrative permissions.
2.Type dcpromo at the command prompt and press Enter.
3.When the Welcome screen displays, click Next.
4.A warning appears indicating the server is a Global Catalog server and recommending you ensure that you have at least one Global Catalog server in the domain. Click OK.
5.On the Delete the Domain page, select the checkbox to delete the domain, as shown in Figure 1. Click Next.
6.If the DC uses Active Directory Integrated DNS, a dialog box displays, indicating what partitions are installed on the DC and letting you know they’ll be removed. Click Next.
7.On the Confirm Deletion page, select the checkbox to Delete All Application Directory Partitions on this Active Directory Domain Controller. Click Next.
8.Type the password for the local Administrator account in the Password and Confirm Password text boxes. Click Next.
9.Review the information on the Summary page and click Next. Select the checkbox to Reboot on Completion. When dcpromo completes, it automatically reboots as a standalone server.

Figure 1. Using dcpromo to remove the last DC in the domain


2. Using dcpromo with an unattend File

One benefit of launching dcpromo from the command line is that you can automate the installation with an unattend file. The easiest way to create an answer file is with the dcpromo wizard. You can run it on any non-DC server but when you get to the Summary page, click the Export Settings button to create the answer file.

The following code shows the contents of an answer file created from the earlier installation.

Note

You can create this file from scratch within Notepad, but it is much easier to let the wizard create it for you.


; DCPROMO unattend file (automatically generated by dcpromo)
; Usage:
;   dcpromo.exe /unattend:C:\data\unattend.txt
;
[DCInstall]
; New forest promotion
ReplicaOrNewDomain=Domain
NewDomain=Forest
NewDomainDNSName=pearson.pub
ForestLevel=2
DomainNetbiosName=PEARSON
DomainLevel=2
InstallDNS=Yes
ConfirmGc=Yes
CreateDNSDelegation=No
DatabasePath="C:\Windows\NTDS"
LogPath="C:\Windows\NTDS"
SYSVOLPath="C:\Windows\SYSVOL"
; Set SafeModeAdminPassword to the correct value prior to
  using the unattend file
SafeModeAdminPassword=
; Run-time flags (optional)
; RebootOnCompletion=Yes

					  

Note

Comments in the unattend file are annotated with a semicolon (;). These lines are ignored by the dcpromo wizard.


Notice that the command to use it is embedded as a comment on the third line. This line points to the location where the unattend.txt file was saved (c:\data in this example).

You must change the SafeModeAdminPassword= line by adding the password you want to assign for Directory Services Restore Mode:

SafeModeAdminPassword=P@ssw0rd

After you add the password and save the file, you can use the following command to run dcpromo with the answer file:

dcpromo.exe /unattend:C:\data\unattend.txt

Note

You might need to use a different path depending on where the unattend.txt file is located.


No other user interaction is necessary. dcpromo completes and reboots the server. When it reboots, it will be a domain controller.

Other -----------------
- SharePoint 2010 : Configuring Search Settings and the User Interface - The Preferences Page: An Administrator's View
- SharePoint 2010 : Configuring Search Settings and the User Interface - Federated Search
- Windows Server 2008 R2 : Hyper-V feature focus - Planning for Hyper-V, Installing and Administering Hyper-V
- Windows Server 2008 R2 : Hyper-V feature focus - Introduction to Virtualization and Hyper-V, Hyper-V Changes
- Windows Server 2003 on HP ProLiant Servers : File Replication Service Design and Implementation (part 2) - Diagnostics and Troubleshooting Methods and Tools
- Windows Server 2003 on HP ProLiant Servers : File Replication Service Design and Implementation (part 1)
- Understanding Network Services and Active Directory Domain Controller Placement for Exchange Server 2007 : Understanding AD Functionality Modes and Their Relationship to Exchange Groups
- Understanding Network Services and Active Directory Domain Controller Placement for Exchange Server 2007 : Exploring DSAccess, DSProxy, and the Categorizer
- Understanding Network Services and Active Directory Domain Controller Placement for Exchange Server 2007 : Defining the Global Catalog
- Integrating BizTalk Server 2010 and Microsoft Dynamics CRM : Communicating from BizTalk Server to Dynamics CRM (part 6)
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
programming4us programming4us
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 windows Phone 7 windows Phone 8
programming4us programming4us
 
programming4us
Natural Miscarriage
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Game Trailer