Move Active Directory Database and Log Files

Learn how to move Active Directory database and log files.

John Savill

July 3, 2013

1 Min Read
Move Active Directory Database and Log Files

Q: How can I move my Active Directory database and log files on my Windows 2008 or above domain controller?

A: With Windows Server 2008 and the restartable Directory Service, the domain controller (DC) doesn't have to be started in Directory Services Restore Mode to move the database and log files.

Use the following procedure to move the database and log files. This assumes the new location and folder exists.

  1. Stop the Active Directory Domain Services service by using Services.msc (this will stop several other services as well).

  2. Open an elevated command prompt, then run the commands below, replacing e:tds with your target location:

    ntdsutilactivate instance ntdsfilesmove db to e:tdsmove logs to e:tdsfilesintegrityquitquit
  3. Restart the Active Directory Domain Services service.

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like