Windows: How to Seize FSMO Roles via PowerShell

Created: 9/1/17

Updated: 9/1/17


Hey peeps,


Ran into a command I felt was useful. As many know I’m kind of living in PowerShell these days and one thing I do more and more is moving FSMO roles. Well there is a comand that makes my life easier instead of moving each FSMO manually from 5 different mmc’s.


PDC Emulator = 0

RID Master = 1

Infrastructure Master = 2

Schema Master = 3

Domain Naming Master = 4


The powershell command is:

-Identity = the target domain controller

-OperationMasterRole = the FSMO role

-Force = in the event the FSMO master is offline, you need to sieze the role

Y = will do it for each prompt

A = will just accept all prompts


Move-ADDirectoryServerOperationMasterRole -Identity DC1 -OperationMasterRole 0,1,2,3,4 -Force


Hope this is helpful to someone. 🙂