There are five roles in FSMO that are divided into two categories: forest roles and domain roles. The forest roles include the Schema Master, which controls changes to the Active Directory schema, and the Domain Naming Master, which controls the unique naming of domains. The domain roles include the Infrastructure Master, RID Master, and PDC Emulator. The Infrastructure Master replicates changes within a domain, the RID Master assigns object IDs, and the PDC Emulator manages account policies and time synchronization. These roles can be configured and seized using the NTDSUtil tool at the command line.