In this blog post, I will show you how to find the location of your Active Directory database on Windows Server domain controller.
About Active Directory DB
The entire Active Directory configuration and objects are stored in a database file that is installed on each DC in the forest.
The location of the Active Directory database is:
%SystemRoot%\NTDS
If you didn’t change the default configuration, you would find it under:
C:\Windows\NTDS
Below you can see all the files that the database is using inside the NTDS folder.

Open With PowerShell
If you prefer to use PowerShell or using Windows Server Core, use the following command to open the database.
cd $env:SystemRoot\ntds
Processing…
Success! You're on the list.
Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.