Step 1: Transferring the RID master, PDC emulator and Infrastructure Master Roles
Log in to the windows 2012 R2 server as domain administrator. Please note, you need to perform the steps below from the server you wish to move the roles to.

Click on Server Manager > Tools > Active Directory Users and Computers

In the Active Directory Users and Computers MMC, right click on the domain name then click on Operation Masters

In the RID Tab, click on Change
Operational Master: Server A (Source)
Operational Master: Server B (Destination)

Click Yes

Click OK

In the PDC Tab, click on Change
Operational Master: Server A (Source)
Operational Master: Server B (Destination)

Click Yes

Click OK

In the Infrastructure Tab, click on Change
Operational Master: Server A (Source)
Operational Master: Server B (Destination)

Click Yes

Click OK
stuart
Very informative.Thanks