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”:
- Open a Command Prompt with administrative privileges.
- Type the following command to stop the NTDS service:
net stop ntds
- 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.
- 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.