How Can I Move NTDS and SYSVOL to a New Drive Without Demoting the Domain Controller?

Anant Bera 151 Reputation points
2024-09-22T11:41:27.9666667+00:00

Hi Expert

We have promoted a Windows Server 2022 as a Domain Controller and accidentally set the NTDS database and SYSVOL folder to C:\ADDS. Now We need to move all of them to D:\adds, but we can’t demote and promote the Domain Controller again because it’s already handling traffic.

What’s the safest way to move the NTDS database and SYSVOL folder to the new drive without breaking anything? Any step-by-step help would be greatly appreciated. Thanks!

Thanks

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,133 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,578 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yanhong Liu 10,390 Reputation points Microsoft Vendor
    2024-09-24T02:50:41.64+00:00

    Hello,

    Here’s a step-by-step guide:

    Moving the NTDS Database

    1. Back Up the System

    Before making any changes, ensure that you have a full backup of the system.

    1. Determine Current NTDS Location
      • Open a Command Prompt as an Administrator.
      • Type ntdsutil and press Enter.
      • Type activate instance ntds and press Enter.
      • Type files and press Enter.
      • Type info and press Enter.
      • Note the current paths for the database and logs.
    2. Move the NTDS Database
      • Still within the ntdsutil prompt, type move DB to D:\adds and press Enter.
      • Type move logs to D:\adds\logs (or any desired log destination) and press Enter.
      • Exit ntdsutil by typing quit repeatedly until you're back at the Command Prompt.
    3. Restart the Domain Controller
      • Restart the Domain Controller to ensure the changes take effect.

    Moving the SYSVOL Folder

    1. Determine Current SYSVOL Location
      • Note the current location of the SYSVOL folder (C:\ADDS\SYSVOL).
    2. Stop the DFS Replication Service
      • Open a Command Prompt as an Administrator.
      • Type net stop dfssvc and press Enter to stop the DFS Replication service.
    3. Copy SYSVOL to New Location
      • Copy the entire contents of the SYSVOL folder to the new location (e.g., D:\adds\SYSVOL).
    4. Update SYSVOL Path in Registry
      • Open the Registry Editor (regedit).
      • Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters.
      • Find the SysVol value and update it to D:\adds\SYSVOL.
    5. Update SYSVOL Path in Active Directory
      • Open a Command Prompt as an Administrator.
      • Type regedt32 and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters.
      • Change the SysVol and SysVolReady paths to the new location.
      • Open ADSI Edit.
      • Connect to the Default Naming Context.
      • Navigate to CN=File Replication Service,CN=System,DC=domain,DC=com.
      • Update the msDFSR-RootPath attribute to the new path.
    6. Restart the DFS Replication Service
      • Open a Command Prompt as an Administrator.
      • Type net start dfssvc and press Enter to start the DFS Replication service.
    7. Verify SYSVOL Replication
      • Ensure that the SYSVOL is being replicated correctly by monitoring the Event Viewer for any issues.

    Suggestions:

    • Ensure that the Domain Controller is functioning correctly and that there are no errors in the Event Viewer related to replication or AD DS.
    • Run the dcdiag command to verify the integrity and health of your Domain Controller.

    Following these steps carefully should allow you to move the NTDS database and SYSVOL folder to a new drive without demoting the Domain Controller. Always ensure you have a backup before making such changes.

    Best Regards,

    Yanhong Liu

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.