ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Move FSMO Roles Using PowerShell | Active Directory Domain Controller AD DC

    IT Discussion
    powershell ad dc ad dc active directory fsmo domain controller windows windows server
    4
    4
    859
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Well known commands but very handy to have them all in one place.

      First check where things are currently held..

      get-addomain | select InfrastructureMaster, PDCEmulator, RIDMaster
      Get-ADForest | select DomainNamingMaster, SchemaMaster
      

      And then these commands to move the roles. my_dc is the name of the DC to which to want to move the roles.

      Move-ADDirectoryServerOperationMasterRole -Identity "my_dc" PDCEmulator
      Move-ADDirectoryServerOperationMasterRole -Identity "my_dc" RIDMaster
      Move-ADDirectoryServerOperationMasterRole -Identity "my_dc" Infrastructuremaster
      Move-ADDirectoryServerOperationMasterRole -Identity "my_dc" DomainNamingmaster
      Move-ADDirectoryServerOperationMasterRole -Identity "my_dc" SchemaMaster
      
      dbeatoD 1 Reply Last reply Reply Quote 4
      • dbeatoD
        dbeato @scottalanmiller
        last edited by

        @scottalanmiller Maybe place it on a Git Repo as well so you have scripts and information ready to us.

        1 Reply Last reply Reply Quote 0
        • syko24S
          syko24
          last edited by

          I'm a fan of the one liner assuming you are transferring all roles to the same DC.

          Move-ADDirectoryServerOperationMasterRole -Identity "DC-Server" -OperationMasterRole 0,1,2,3,4
          
          
          0: PDCEmulator
          1: RIDMaster
          2: InfrastructureMaster
          3: SchemaMaster
          4: DomainNamingMaster
          
          CCWTechC 1 Reply Last reply Reply Quote 1
          • CCWTechC
            CCWTech @syko24
            last edited by

            @syko24 said in Move FSMO Roles Using PowerShell | Active Directory Domain Controller AD DC:

            I'm a fan of the one liner assuming you are transferring all roles to the same DC.

            Move-ADDirectoryServerOperationMasterRole -Identity "DC-Server" -OperationMasterRole 0,1,2,3,4
            
            
            0: PDCEmulator
            1: RIDMaster
            2: InfrastructureMaster
            3: SchemaMaster
            4: DomainNamingMaster
            

            Me too. This is what I normally use. SOOOO helpful.

            Not sure why powershell made it so complicated to find who has the roles.
            netdom query fsmo was so easy.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post