none
Distributed File System Replication (DFSR) STATIC RPC PORT

    Question


  • I would like to set the static RPC port that DFSR uses via registry; I do not wish to use the command line option dfsrdiag staticRPC /port:.   Anyone know if this can be done via registry?  (Server 2008 R2)

    Saturday, July 17, 2010 9:11 PM

All replies

  • Hi John.Smith,

    You may follow this article: 

    Active Directory Replication over Firewalls
    http://technet.microsoft.com/en-us/library/bb727063.aspx

    Specifically, navigate to this registry key:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NTFRS\Parameters\

    Add a new DWORD value called RPC TCP/IP Port Assignment (include the spaces). Set the value's data to the port number that you want to use (remember to change the displayed base to decimal before you enter the data).

    This can help you to assign RPC ports by registry.

    Hope it helps.

    Scorprio


    TechNet Software Assurance Managed Newsgroup MCTS: Windows Vista | Exchange Server 2007 MCITP: Enterprise Support Technician | Server & Enterprise Admin
    Monday, July 19, 2010 8:01 AM
  • Scorprio,

    FRS and DFRS appeart to be two distinct services uner Windowd 2008-R2.  I used the command line DFSRDIAG STATICRPC and changed the default RPC port from 5722 to somthing different and the changed did not relfect in HKEY_LOCAL_MACHINE\SYSTEM\CURRENTCONTROLLSET\SERVICES\NTFRS\PARAMETERS\RPC TCP/IP PORT ASSIGMENT.

    Also, it according to the folowing Technet Artical, DFS and FRS and two disticnt services.  See below.

    Can DFS Replication communicate with FRS?
    No. DFS Replication does not communicate with File Replication Service (FRS). DFS Replication and FRS can run on the same server at the same time, but they must never be configured to replicate the same folders or subfolders because doing so can cause data loss.

    http://technet.microsoft.com/en-us/library/cc773238(WS.10,printer).aspx#BKMK_026

    Thus, I am still unable to change the DFSR port via registry. 

     

    Tuesday, July 20, 2010 12:06 PM
  • Hi,

    Try the following command:

    DFSRDIAG STATICRPC /port

    You can type DFSRDIAG STATICRPC /? to see the examples.

     


    Shaon Shan| TechNet Subscriber Support in forum| If you have any feedback on our support, please contact tngfb@microsoft.com
    Wednesday, July 21, 2010 4:03 AM

  • Did you read my original question which specifically stated: "I do not wish to use the command line option dfsrdiag staticRPC /port"

    Thursday, July 22, 2010 11:09 AM
  • Sorry for my mistake...But we cannot change it in registry.

    You may have a look at following file:

    %SYSTEMDRIVE%\System Volume Information\DFSR\Config\DfsrMachineConfig.XML

    It will add "<rpcportassignment>PORTNUMBER</rpcportassignment>" to the file if we set a static port. Check if this can help on the question.


    Shaon Shan| TechNet Subscriber Support in forum| If you have any feedback on our support, please contact tngfb@microsoft.com
    Friday, July 23, 2010 2:22 AM
  • Does anyone know what the switch to set it back to a dynamically allocated port?

    Nilanga

    Wednesday, August 14, 2013 5:06 AM
  • I have gone through many article and no where I found a way apart from backing up xml file and restoring.

    Friday, February 14, 2014 5:50 AM
  • I have set my dfsr to use static port using DFSRDIAG STATICRPC /port, rebooted the DC and the result showing it is set properly. However I can see still my server is using RPC dynamic port for DFSR.  Can someone help.

    Here is the current status.

    C:\Users\dfsrdiag DumpMachineCfg

    Machine Configuration Parameters:
       ConflictHighWatermarkPercent   : 90
       ConflictLowWatermarkPercent    : 60
       DebugLogFilePath               : C:\Windows\debug
       DebugLogSeverity               : 4
       Description                    :
       DsPollingIntervalInMin         : 60
       EnableDebugLog                 : TRUE
       EnableLightDsPolling           : TRUE
       LastChangeNumber               : 2
       LastChangeSource               : gsmcwl2
       LastChangeTime                 : 20140228112738.000000-000
       MaxDebugLogFiles               : 1000
       MaxDebugLogMessages            : 200000
       MaxOfflineTimeInDays           : 0
       ReghostingRateInMin            : 60
       RootHighWatermarkPercent       : 100
       RootLowWatermarkPercent        : 80
       RpcPortAssignment              : 5722
       StagingHighWatermarkPercent    : 90
       StagingLowWatermarkPercent     : 60

    Operation Succeeded

    Friday, February 28, 2014 1:49 PM