With server 2008/2003 we have used ntdsutil or adds gui for manage the fsmo roles, now with server 2012 we can easily manage the fsmo roles using ad power shellpowershell module.
1.Using netdom query fsmo command we can find out the stored location of fsmo roles in adds(also this can be done with Get-ADDomain command also)
2.In my case i have three roles in one server and two in another.now my plan is to move all the servers in to one server for second server maintenance purpose
i have used below mentioned power shell command for move the roles.(refer the above snap).
Move-ADDirectoryServerOperationMasterRole xxxdc01 –OperationMasterRole pdcemulator,ridmaster,infrastructuremaster
(if we are moving all five servers roles we have to add schemamaster,domainnamingmaster to this command)