In this video, we go over how to locate the FSMO roles and then transfer the FSMO roles within Windows Server 2016 to another Windows Server 2016 machine.
Here are the comments within the video:
Check which server has the FSMO roles installed: netdom query fsmo
Moving the FSMO roles to another server using PoweShell:
Move-ADDirectoryServerOperationMasterRole –Identity YOURSERVNAME –OperationMasterRole SchemaMaster, DomainNamingMaster, PDCEmulator, RIDMaster, InfrastructureMaster