Active Directory

What is the command required to change the AD database location?

To change the location of the Active Directory (AD) database, you need to update the “DSA Working Directory” value in the registry. Here are the steps to do this using the command-line utility “REG”:

  1. Open a Command Prompt with administrative privileges.
  2. Type the following command to stop the NTDS service:

net stop ntds

  1. Type the following command to update the “DSA Working Directory” registry key:

reg add HKLM\SYSTEM\CurrentControlSet\Services\NTDS\Parameters /v “DSA Working Directory” /t REG_EXPAND_SZ /d “new_directory_path” /f

Replace “new_directory_path” with the full path to the new directory where you want to move the AD database.

  1. Type the following command to start the NTDS service:

net start ntds

After completing these steps, the AD database will be moved to the new location specified in the registry. It is important to verify that the database is working correctly after the move, as described in my previous answer.

So, that’s all in this blog. I will meet you soon with next stuff. Have a nice day!!!

Guys please don’t forget to like and share the post. Also join our WindowsTechno Community and where you can post your queries/doubts and our experts will address them.

You can also share the feedback on below windows techno email id.

If you have any questions, feel free to contact us on admin@windowstechno.com also follow us on facebook@windowstechno to get updates about new blog posts.

How useful was this post?

Click on a star to rate it!

As you found this post useful...

Follow us on social media!

Was this article helpful?
YesNo

Vipan Kumar

He is an Active Directory Engineer. He has been working in IT industry for more than 10 years. He is dedicated and enthusiastic information technology expert who always ready to resolve any technical problem. If you guys need any further help on subject matters, feel free to contact us on admin@windowstechno.com Please subscribe our Facebook page as well website for latest article. https://www.facebook.com/windowstechno

Leave a Reply

Back to top button