You are on page 1of 5

07/08/2013

NTDSUTIL to run Offline Defragmentation in Windows 2003,2000 Active Directory | Windows Reference

Windows Reference
WINDOWS 8 7 2008 2003 VISTA XP MS OFFICE TUTORIALS FIXES TIPS
About Privacy Policy Popular Posts Sitemap Search
Follow Me

10
2008

Mar

[adrotate group="6"]

NTDSUTIL to run Offline Defragmentation in Windows 2003,2000 Active Directory


Window s 2000, Window sServer-2003 Add comments

Enter email address Subscribe

Categories DNS ebooks Encryption Firefox Free Utilities General google-chrome Hyper-V Internet Explorer Internet Information Services (IIS) MS Exchange Server MS Office Multimedia Networking opensource Outlook Express Security Server Monitoring Storage Virtualization Windows 2000 Windows 7 Windows 8 Windows Mobile

Login/Register

StumbleUpon
0
Share

Log In
Username

By default Windows runs an online Defragmentation of the Windows Active Directory database every 12 hours. However, Online defragmentation doesnt recover the disk space or compact the database. It simply moves data around. An Offline Defragmentation, on the other hand performs a defragmentation on the database, compacts it and recovers the space. Use the ntdsutil utility to run Offline Degramentation on Windows Active Directory. This requires unmounting the Active Directory which mean rebooting the server in Directory Service Restore mode. NOTE: It is important that you take a

Passw ord

Remember Me

Log In

www.windowsreference.com/windows-2000/ntdsutil-to-run-offline-defragmentation-in-windows-20032000-active-directory/

1/5

07/08/2013

NTDSUTIL to run Offline Defragmentation in Windows 2003,2000 Active Directory | Windows Reference

Windows Security Windows Server 2008 Windows Vista Windows XP Windows XP SP3 Windows-Server-2003 Wireless

backup of the Active Directory before performing this operation. 1. Reboot the Windows Server. 2. Press F8 to bring up the Windows Startup menu. 3. Select the Directory Services Restore Mode. This will start Windows Server in Safe Mode and the Directory

Archives

Service not running 4. Login as a local admin. 5. Now, from the command prompt (Start Run type cmd and press enter) 6. Run the command ntdsutil.exe

Select Month

C:\> ntdsutil

This will launch the ntdsutil 7. Enter files at the ntdsutil prompt. This will launch the file maintenance mode 8. Enter compact to c:\tmp\ This will instruct ntdsutil to compact the database to c:\tmp\ folder. This could be any folder. Basically, ntdsutil will compact and create a new database leaving the original database file ntds.dit in %systemroot\ntds\ folder. 9. Replace the original ntds.dit file with the new compacted one.

c:\tmp> copy ntds.dit %systemroot%\ntds\ntds.dit


www.windowsreference.com/windows-2000/ntdsutil-to-run-offline-defragmentation-in-windows-20032000-active-directory/ 2/5

07/08/2013

NTDSUTIL to run Offline Defragmentation in Windows 2003,2000 Active Directory | Windows Reference

That completes the process. Reboot the server as normal and check if all is OK. Should there be a problem, be prepared to restore your backup

Incoming search terms:


ntdsutil defrag (8) ntdsutil files repair windows 2003 (7) www windowsreference com ntdsutil-to-run-offlinedefragmentation-in-windows20032000-active-directory (6) ntdsutil offline defrag (6) ntdsutil 2003 (4) windows 2003 server active directory defragmentation (4) run defrag in safe mode windows server 2003 (2) windows 7 offline defrag (2) ad database defragment windows 2000 (2) active directory database white space (2) Related posts: 1. How to Configure Active Directory Site link cost 2. WinDirStat Windows (Vista/XP/2003/2000/NT) Directory Statistics 3. Disable or enable Active Directory replication in Windows 2000 Server 4. How to force Active Directory Replication between Domain controllers 5. Download Remote Control Addon for Active Directory Users & Computers 6. Transfer FSMO (Flexible Single Master Operations) Roles from Windows server 2000 to Windows Server 2003 (Part2)
www.windowsreference.com/windows-2000/ntdsutil-to-run-offline-defragmentation-in-windows-20032000-active-directory/ 3/5

07/08/2013

NTDSUTIL to run Offline Defragmentation in Windows 2003,2000 Active Directory | Windows Reference

7. Disconnect the old server (win server 2000),Raise the domain level functionality to native Windows 2003,Rename your new windows server 2003(Part4)

Posted by vistafix at 4:23 pm Tagged w ith: activedirectory, compact, defragmentation, ntds, ntdsutil, restore, w indow s

Leave a Reply
Name

(required) E-mail

(required) URI

Your Comment

You may use these HTML tags and attributes: < ah r e f = " "t i t l e = " " > < a b b rt i t l e = " " >< a c r o n y m t i t l e = " " >< b >< b l o c k q u o t e c i t e = " " >< c i t e >< c o d e >< d e l d a t e t i m e = " " >< e m >< i >< qc i t e = " " > < s t r i k e >< s t r o n g >

www.windowsreference.com/windows-2000/ntdsutil-to-run-offline-defragmentation-in-windows-20032000-active-directory/

4/5

07/08/2013

NTDSUTIL to run Offline Defragmentation in Windows 2003,2000 Active Directory | Windows Reference

Submit Comment

How to create DNS Reverse Lookup Zone in Windows Server 2003

How to Create an additional domain controller in win server 2003

2012 Window s Reference

Suffusion theme by Sayontan Sinha

www.windowsreference.com/windows-2000/ntdsutil-to-run-offline-defragmentation-in-windows-20032000-active-directory/

5/5