<

Go Premium for a chance to win a PS4. Enter to Win

x

Windows Server 2003 R2: "The active directory is rebuilding indices please wait..." Message While Logging

Published on
3,642 Points
642 Views
Last Modified:
Jinish KG
I'm Jinish KG,  Total 10 years of experience in IT field.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is required to start the all services normally

Problem

Error "The active directory is rebuilding indices please wait” in Windows  Server 2003
 
3872.image2.jpg 

Operating system:

Windows 2003 server

 

Solution



The server may show the message “The Active Directory is rebuilding indices” if the Active Directory database (NTDS) gets corrupt. Follow the below steps to get of this message.

Boot the server in “Directory Service Restore Mode” using “F8” on boot up.

There is another command that checks the “integrity” of the database. But first, Microsoft documentation states that before running the integrity command ,we should run the “ntdsutil files recover” command. This commands “ensures all committed transactions  are reflected in the data file.

type the command ntdsutil in administrator privilged command prompt.

PS C:\> ntdsutil

From the console type the command activate instance ntds

C:\Windows\system32\ntdsutil.exe: activate instance ntds

Active instance set to “ntds”.

type files  and press enter and execute checksum command as shwon in below

C:\Windows\system32\ntdsutil.exe: files
file maintenance: checksum

 

There is another command that checks the “integrity” of the database. But first, Microsoft documentation states that before running the integrity command .we should run the “ntdsutil files recover” command. This commands “ensures all committed transactions are reflected in the data file.

Since we are still in “ntdsutil, files” , we can simply enter the command as follows:

type the command Recover as shown in below
 

file maintenance: recover

It will initiate recovery mode and  Performing soft recovery

Move the log files (res1.log, res2.log and edb.log) from “c:\windows\ntds\” to another location.

ad1.JPG
Type ntdsutil files integrity (Checks integrety of ntds.dit)

ad2.JPGType ntdsutil “sem d a” go

Type ntdsutil “sem d a” “go f”

(When you move or compact the Active Directory database, if the integrity check fails, you must run a subsequent database test called semantic database analysis. When you run semantic database analysis with the Go Fixup command instead of the Go command, errors are written into Dsdit.dmp.xx log files. A progress indicator reports the status of the check. You can use this procedure to perform semantic database analysis with fixup.
Perform the database recovery using the “Esentutl.exe”.)


Type esentutl /r c:\windows\ntds\ntds.dit
Delete the database log files (.log) from the WINDOWS\Ntds folder.
Execute the command  esentutl /p “c:\windows\ntds\ntds.dit”

Open the registry editor by typing “regedit” in command prompt. Locate the path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RpcSs

8015.image-2.jpg


Add a “Reg_Multi_Sz” with the name as “DependOnService” then add “Eventlog” to the data list “DependOnService”, close the registry and reboot the server in normal mode.

0
Comment
Author:Jinish KG
1 Comment
 

Expert Comment

by:Praveen Patten
Super Jinesh
1

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Join & Write a Comment

Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
Next Article:

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month