Commands to transfer
ntdsutil
roles
connection
connect to server <ServerName>
q
transfer <RoleName>
List of FSMO roles (and syntax for transfer role command)
Schema Master (schema master)
Naming Master (naming master)
PDC Emulator (pdc)
RID Master (rid master)
Infrastructure Master (infrastructure master)
Checking for FSMO role holder
From a domain controller:
netdom query fsmo