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

Recovering from a Disaster in an Exchange Server 2007 Environment : Recovering Active Directory - The Active Directory Database

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
6/6/2012 4:37:01 PM
When undesired changes are made in Active Directory or the Active Directory database is corrupted on a domain controller, recovering the Active Directory database might be necessary. Restoring Active Directory can seem like a difficult task, unless frequent backups are performed and the administrator understands all the restore options.

The Active Directory Database

The Active Directory database contains all the information stored in Active Directory. The global catalog information is also stored in this database. The actual filename is ntds.dit and, by default, is located in C:\Windows\NTDS\. When a domain controller is restored from server failure, the Active Directory database is restored with the System State. If no special steps are taken when the server comes back online, it will ask any other domain controllers for a copy of the latest version of the Active Directory database. This situation is called a nonauthoritative restore of Active Directory.

When a change in Active Directory needs to be rolled back or the entire database needs to be rolled back across the enterprise or domain, an authoritative restore of the Active Directory database is necessary.

Active Directory Nonauthoritative Restore

When a domain controller is rebuilt from a backup after a complete system failure, simply recovering this server using a restore of the local drives and System State is enough to get this machine back into the production network. When the machine is back online and establishes connectivity to other domain controllers, any Active Directory and SYSVOL updates will be replicated to the restored server.

Nonauthoritative restores are also necessary when a single domain controller’s copy of the Active Directory database is corrupt and is keeping the server from booting up properly. To restore a reliable copy of the Active Directory database, the entire System State needs to be restored; if additional services reside on the domain controller, restoring the previous configuration data for each of these services might be undesirable. In a situation like this, the best option is to try to recover the Active Directory database using database maintenance and recovery utilities such as Esentutl.exe and Ntdsutil.exe. These utilities can be used to check the database consistency, defragment, and repair and troubleshoot the Active Directory database. For information on Active Directory maintenance practices with these utilities, refer to Windows Server 2003 Help and Support.

To restore the Active Directory database to a single domain controller to recover from database corruption, perform the following steps:

1.
Power up the domain controller and press the F8 key when the boot loader is displayed on the screen.

2.
When the advanced boot options are displayed, scroll down, select Directory Services Restore Mode, and then press Enter to boot the server. This mode boots the Active Directory database in an offline state. When you choose this boot option, you can maintain and restore the Active Directory database.

3.
When the server boots up, log on using the username Administrator and the Restore mode password specified when the server was promoted to a domain controller. To change the Restore mode password on a domain controller running in Normal mode, use the Ntdsutil.exe utility.

4.
Click Start, Run.

5.
Type Ntbackup.exe and click OK.

6.
When the Backup or Restore window opens, click the Advanced Mode hyperlink.

7.
Select the Restore and Manage Media tab.

8.
Select the appropriate backup medium, expand it, and check the System State. If the correct medium is not available, the file must be located or the tape must be loaded in the tape drive and cataloged before it can be used to restore the System State.

9.
Choose to restore the data to the original location, and click the Start Restore button in the lower-right corner of the backup window.

10.
A pop-up window indicates that restoring the System State to the original location will overwrite the current System State. Click OK to continue.

11.
A Confirm Restore window opens in which you can choose advanced restore options. Click OK to initiate the restore of the System State.

12.
When the restore is complete, a system restart is necessary to update the services and files restored during this operation. Because only a nonauthoritative restore of the Active Directory database is necessary, click Yes to restart the server.

13.
After the server reboots, log on as a domain administrator.

14.
Check the server event log and Active Directory information to ensure that the database has been restored successfully. Then log off the server.

Active Directory Authoritative Restore

When a change made to Active Directory is causing problems, or when an object is modified or deleted and needs to be recovered to the entire enterprise, an Active Directory authoritative restore is necessary.

To perform an authoritative restore of the Active Directory database, follow these steps:

1.
Power up the domain controller, and press the F8 key when the boot loader is displayed on the screen.

2.
When the advanced boot options are displayed, scroll down, select Directory Services Restore Mode, and press Enter to boot the server. This mode boots the Active Directory database in an offline state. When you choose this boot option, you can maintain and restore the Active Directory database.

3.
When the server boots up, log on using the username Administrator and the Restore mode password specified when the server was promoted to a domain controller. To change the Restore mode password on a domain controller running in Normal mode, use the Ntdsutil.exe utility.

4.
Click Start, Run.

5.
Type Ntbackup.exe and click OK.

6.
When the Backup or Restore window opens, click the Advanced Mode hyperlink.

7.
Select the Restore and Manage Media tab.

8.
Select the appropriate backup medium, expand it, and check the System State. If the correct medium is not available, the file must be located, or the tape must be loaded in the tape drive and cataloged before it can be used to restore the System State.

9.
Choose to restore the data to the original location, and click the Start Restore button in the lower-right corner of the backup window.

10.
A pop-up window indicates that restoring the System State to the original location will overwrite the current System State. Click OK to continue.

11.
A Confirm Restore window opens in which you can choose advanced restore options. Click OK to initiate the restore of the System State.

12.
When the restore is complete, a system restart is necessary to update the services and files restored during this operation. Because only a nonauthoritative restore of the Active Directory database is necessary, click No.

13.
Close the backup window, and click Start, Run.

14.
Type cmd.exe and click OK to open a command prompt.

15.
At the command prompt, type ntdsutil.exe and press Enter.

16.
Type Authoritative restore and press Enter.

17.
Type Restore Database and press Enter to restore the entire database. The respective Active Directory partitions, such as the schema partition and the domain-naming context partition, are replicated to all other appropriate domain controllers in the domain and/or forest.

18.
An Authoritative Restore Confirmation dialog box appears; click Yes to start the authoritative restore.

19.
The command prompt window displays whether the authoritative restore was successful. Close the command prompt and reboot the server.

20.
Boot up the server in Normal mode, log on, and open the correct Active Directory tools to verify whether the restore was successful. Also, check on other domain controllers to ensure that the restore is being replicated to them.

21.
When you’re done, perform a full backup of the domain controller or at least the System State; then log off the server when the backup is complete.

Partial Active Directory Authoritative Restore

Most Active Directory authoritative restores are performed to recover from a modification or deletion of an Active Directory object. For example, a user account might have been deleted instead of disabled, or an organizational unit’s security might have been changed and the administrator is locked out. Recovering only a specific object, such as a user account or an organizational unit or a container, requires the distinguished name (DN) of that object. To find the DN, the administrator can use the Ntdsutil utility; however, if an LDIF dump of Active Directory exists, this file is more helpful. If no LDIF file exists and the DN of the object to be recovered is unknown, the recovery of the single object or container is not possible.

To simplify the steps to partial recovery, you will recover a single user account using the logon john that was previously contained in the Users container in the Companyabc.com domain. To restore the user account, follow these steps:

1.
Power up the domain controller, and press the F8 key when the boot loader is displayed on the screen.

2.
When the advanced boot options are displayed, scroll down, select Directory Services Restore Mode, and press Enter to boot the server. This mode boots the Active Directory database in an offline state. When you choose this boot option, you can maintain and restore the Active Directory database.

3.
When the server boots up, log on using the username Administrator and the Restore mode password specified when the server was promoted to a domain controller. To change the Restore mode password on a domain controller running in Normal mode, use the Ntdsutil.exe utility.

4.
Click Start, Run.

5.
Type Ntbackup.exe and click OK.

6.
When the Backup or Restore window opens, click the Advanced Mode hyperlink.

7.
Select the Restore and Manage Media tab.

8.
Select the appropriate backup medium, expand it, and check the System State. If the correct medium is not available, the file must be located, or the tape must be loaded in the tape drive and cataloged before it can be used to restore the System State.

9.
Choose to restore the data to the original location, and click the Start Restore button in the lower-right corner of the backup window.

10.
A pop-up window indicates that restoring the System State to the original location will overwrite the current System State. Click OK to continue.

11.
A Confirm Restore window opens in which you can choose advanced restore options. Click OK to initiate the restore of the System State.

12.
When the restore is complete, a system restart is necessary to update the services and files restored during this operation. Because only a nonauthoritative restore of the Active Directory database is necessary, click No.

13.
Close the backup window and click Start, Run.

14.
Type cmd.exe and click OK to open a command prompt.

15.
At the command prompt, type ntdsutil.exe and press Enter.

16.
Type Authoritative restore and press Enter.

17.
Type Restore Object "cn=John,cn=Users,dc=companyabc,dc=com", and press Enter.

18.
The success or failure status of the restore appears in the command prompt. Now type quit and press Enter. Repeat this step until you reach the C: prompt.

19.
Close the command prompt windows and reboot the server.

20.
Log on to the server with a domain Administrator account, and verify that the account has been restored. Then log off the server.

Global Catalog

No special restore considerations exist for restoring a global catalog server other than those outlined for restoring Active Directory in the previous sections. The global catalog data is re-created based on the contents of the Active Directory database.

Restoring the SYSVOL Folder

The SYSVOL folder contains the system policies, group policies, computer startup/shutdown scripts, and user logon/logoff scripts. If a previous version of a script or Group Policy Object is needed, the SYSVOL folder must be restored. As a best practice and to keep the process simple, the SYSVOL folder should be restored to an alternate location where specific files can be restored. When the restored files are placed in the SYSVOL folder, the File Replication Service recognizes the file as new or a changed version and replicates it to the remaining domain controllers. If the entire SYSVOL folder needs to be pushed out to the remaining domain controllers and the Active Directory database is intact, a primary restore of the SYSVOL is necessary.

To perform a primary restore of the SYSVOL folder, follow these steps:

1.
Power up the domain controller, and press the F8 key when the boot loader is displayed on the screen.

2.
When the advanced boot options are displayed, scroll down, select Directory Services Restore Mode, and press Enter to boot the server. This mode boots the Active Directory database in an offline state. When you choose this boot option, you can maintain and restore the Active Directory database.

3.
When the server boots up, log on using the username Administrator and the Restore mode password specified when the server was promoted to a domain controller. To change the Restore mode password on a domain controller running in Normal mode, use the Ntdsutil.exe utility.

4.
Click Start, Run.

5.
Type Ntbackup.exe and click OK.

6.
When the Backup or Restore window opens, click the Advanced Mode hyperlink.

7.
Select the Restore and Manage Media tab.

8.
Select the appropriate backup medium, expand it, and check the System State. If the correct medium is not available, the file must be located, or the tape must be loaded in the tape drive and cataloged before it can be used to restore the System State.

9.
Choose to restore the data to the original location, and click the Start Restore button in the lower-right corner of the backup window.

10.
A pop-up window indicates that restoring the System State to the original location will overwrite the current System State. Click OK to continue.

11.
A Confirm Restore window opens in which you can choose advanced restore options. Click the Advanced button to view the advanced restore options.

12.
Check the When Restoring Replicated Data Sets, Mark the Restored Data as the Primary Data for All Replicas check box, as shown in Figure 1.

Figure 1. Choosing to perform a primary restore.


13.
Click OK to return to the Confirm Restore page, and click OK to start the restore.

14.
When the restore is complete, a system restart is necessary to update the services and files restored during this operation. Because only a nonauthoritative restore of the Active Directory database is necessary, click Yes to restart the server.

15.
After the server reboots, log on using an account with domain Administrator access.

16.
Check the server event log and the SYSVOL folder to ensure that the data has been restored successfully. Log off the server when you’re finished.
Other -----------------
- Exchange Server 2010 : Managing Queues
- Exchange Server 2010 : Working with Queues - Accessing the Queue Viewer
- Windows Server 2008 Server Core : Managing the Hard Drive - Managing Partitions with the DiskPart Command
- Windows Server 2008 Server Core : Managing the Hard Drive - Opening Remote Directories with the Append Utility
- Microsoft Dynamics AX 2009 : Working with Data in Forms - Creating wizards
- Microsoft Dynamics AX 2009 : Working with Data in Forms - Preloading images
- Microsoft Systems Management Server 2003 : Defining Parent-Child Relationships (part 4) - Implementing a Parent-Child Relationship Between Primary Sites
- Microsoft Systems Management Server 2003 : Defining Parent-Child Relationships (part 3) - Differences Between Primary and Secondary Sites
- Microsoft Systems Management Server 2003 : Defining Parent-Child Relationships (part 2) - Installing the Secondary Site Locally from the SMS CD
- Microsoft Systems Management Server 2003 : Defining Parent-Child Relationships (part 1) - Installing the Secondary Site from Its Parent Primary Site
 
 
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
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server