You may follow this article:
Active Directory Replication over Firewalls
Specifically, navigate to this registry key:
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.
TechNet Software Assurance Managed Newsgroup MCTS: Windows Vista | Exchange Server 2007 MCITP: Enterprise Support Technician | Server & Enterprise Admin
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.
Thus, I am still unable to change the DFSR port via registry.
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 firstname.lastname@example.org
- Proposed as answer by MedicalSMicrosoft contingent staff, Moderator Wednesday, July 28, 2010 8:44 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
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