Quick Tip: Moving RTCReplicaRoot Share

April 11, 2016

Let’s start by issuing the following disclaimers.

Warning #1.  This is not supported in production environments.  You should use at your own risk and should test/validate before implementing.  I’m not responsible for anything you break.

Warning #2.  This procedure has only been tested on Lync 2013 and Skype for Business 2015 servers.  This has not been tested on 2010.

Warning #3.  This procedure has not been tested on the CMS Master in Skype for Business 2015.  You should read this to find out why deleting this folder could be the end of the world (or your employment).

What’s the Issue

When you install Skype for Business (or Lync 2013/2010), where the installer puts your RTCReplicaRoot folder can be fairly random looking in nature.  There is actually a full procedure of which drive it goes too based on the total number of drives available and and which drive you select to install the program files itself but regardless to say it goes to the wrong place sometimes.

In my research, I found two other posts (here and here) that detailed how to move it but in each case it required robocopy and other steps I didn’t want to take and weren’t 100% successful in my testing in the lab.

Move the Share

  1. Take a backup of your CMS just in case.  export-csconfiguration and export-cslisconfiguration for good measure.  Again, if you aren’t doing this on your CMS master it shouldn’t matter but just in case.
  2. Stop the Replica Replicator Agent service.

    In my case, I was doing this on the pool paired server.  So this is the backup pool and CMS was not active on this server but that is why you see the other CMS related services.  If you are doing this scenario, you should stop file transfer agent and master replica agent as well for good measure.
  3. Go to the file location of your RTCReplicaRoot file share and delete it.  If you want to make a copy of it, feel free too, but I just straight up removed it.  You will need to take ownership of the folder to do this.
  4. Open regedit and go to:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\5D0DD2910359E3F4C9DB7363485EFAF3In each instance, update the existing REG_SZ value to the location where you want the RTCReplicaRoot to be installed to.  In my case, I’m moving from E:\RtcReplicaRoot to C:\RtcReplicaRoot.
  5. Still in RegEdit, go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\REPLICA and update the ImagePath.  This is a really long string that will include the program files but in the middle of the string you will see the replicaRootDir location.  Update to your new location.

    “D:\Lync 2013\Server\Replica Replicator Agent\ReplicaReplicatorAgent.exe” -s /replicaRootDir:C:\RtcReplicaRoot\ /sqlInstance:(local)\rtclocal /sqlDatabase:xds

  6. Go to Programs and Features and find Skype for Business Core Components and do a repair.  The process of doing the repair will see that the folder is missing and recreate it for you with all of the correct permissions.
  7. Go back to services and restart the Replica service.  You may find CLS is disabled as well, feel free to start that back up.

After about 5 minutes, you will find replica is in sync again and all is good.



Written by Richard Richard is an Office Apps & Services MVP (Teams / Skype) who lives in Minneapolis, MN. Microsoft Certified Solutions Master (MCSM) and MCSM Instructor - when those were a thing long ago. When not writing code, breaking teams - debate coach and avid golfer.
Follow on Twitter

Built using Gatsby and Material-UI

Copyright © TheArgyleMVP 2022.