The AD databases are stored in specific locations by default, but there may be scenarios where you need to move them.
This blog will guide you through changing the Active Directory database path.
Default location: C:\Windows\NTDS\NTDS.dit
Active Directory Database (NTDS.dit) Stores objects like users, computers, and groups.
The Default location for Active Directory logs: C:\Windows\NTDS
Below are the details of the Active Directory Logs files
EDB.LOG: EDB.log first records the change, such as creating a new user account. The change is then written to the NTDS.DIT database.
EDB.CHK: Once the transaction is successfully committed to the database, the EDB.chk file is updated to mark the point of the last successful change.
Res1.log & Res2.log: Reserved logs to prevent data loss if the disk runs out of space.
TEMP.EDB: A temporary database file is created during certain Active Directory operations, such as database recovery. It is not required for day-to-day operations but may be created in specific circumstances.
Below is the snapshot of the default path of Active Directory Database and Logs

Common reasons for changing the AD database:
We are going to change the Active Directory database and log files from the C:\Windows\NTDS folder to move to the D:\NTDS folder
Open the Command Prompt as an Administrator.
Type "Net stop ntds" and Press Enter.

In the Same Command, Prompt

Type "move DB to D:\NTDS" and press Enter.

Type "move logs to D:\NTDS" and press Enter.

The Integrity command is used to check the physical consistency of the Active Directory database (NTDS.dit).

Semantic Database Analysis (SDA) is a diagnostic tool that checks the logical consistency of the Active Directory (AD) database (NTDS.dit).
It ensures that all objects, attributes, and links in the AD database are correctly structured and free of corruption.

STEP 7:- Start the Active Directory Services
Type "net start ntds" and Press Enter.

STEP 8:- Check the Active Directory Database and Logs in New Path

STEP 9:- Restart your Domain Controller
Get In Touch to Avail
20% OFFMy experience during this training was truly excellent. It is difficult to express in words how valuable and enjoyable the learning journey was. Every class felt like a personal one-to-one session because Sir always ensured that every student clearly understood the concepts. Zamir Sir explains every topic with great detail, patience, and real-world examples, which makes even complex concepts very easy to understand. The way he connects theory with live practical examples helps students learn quickly and confidently. The 5 weeks of training passed so quickly, and during this time we learned a tremendous amount of practical knowledge about Windows Hybrid Server. Sir is extremely supportive and always ready to answer questions until the concept becomes completely clear. I am truly grateful for this learning experience and I am looking forward to continuing my CCNA course with Zamir Momin Sir in the future as well. I highly recommend Attari Classes and Zamir Momin Sir to anyone who wants to build strong practical knowledge in IT.
I have completed the Azure and Windows Server Hybrid training, and I am very satisfied with the learning experience. The Zameer Sir explained concepts clearly, from basic fundamentals to advanced topics, and provided practical, real-world examples that made complex concepts easier to understand. The hands-on sessions were especially helpful in building confidence. Overall, it was a very informative and well-structured training, and I would highly recommend Zameer sir to others.
I completed the Windows Server Hybrid Course from Attari Classes, and it was an excellent learning experience. The trainers explained Windows Server, Active Directory, GPO, Azure integration, and real-world scenarios in a very clear and practical way.The course is job-oriented, with hands-on labs and interview-focused guidance, which really helped me understand on-prem + Azure hybrid environments. Support from the faculty was outstanding, and doubts were cleared patiently.
Zameer Sir is a very knowledgeable and supportive trainer. His explanation of Windows Server Hybrid concepts was clear and well structured. The practical demonstrations and real-time scenarios made the training very effective. I gained valuable skills and confidence from this course. Thank you for the great learning experience
I completed the Windows Server Hybrid course at Attari Classes, and it was a great learning experience. Zamir Sir explains concepts very clearly with practical examples. They also provide LMS access with lifetime availability, which is very helpful for revision. Highly recommended for anyone serious about server and system administration.
I recently completed the Windows Server Hybrid Course at Attari Classes and had a great learning experience. The course covers both on-premises Windows Server concepts and cloud integration in a very practical way. The trainer explains complex topics clearly and focuses a lot on real-world scenarios and hands-on labs. This helped me understand Active Directory, virtualization, and hybrid cloud environments much better. Overall, I would highly recommend Attari Classes to anyone who wants to build strong skills in Windows Server administration and hybrid infrastructure.
I recently completed the Windows Server Hybrid Training at Attari Classes. The overall experience was excellent. Zammer Sir’s teaching style is very practical and industry-oriented, with real-time examples and clear explanations. He patiently clears doubts and also shares valuable IT career tips and life lessons. I’m currently working as a Desktop Support Engineer (L2) at 9XM, Mumbai (Powai), and this training is helping me upskill toward a System Administrator role. Thank you to Attari Classes and Zammer Sir for the valuable knowledge and guidance.