{"id":202,"date":"2017-06-21T16:58:40","date_gmt":"2017-06-21T14:58:40","guid":{"rendered":"https:\/\/msb365.abstergo.ch\/?p=202"},"modified":"2017-07-19T13:37:12","modified_gmt":"2017-07-19T11:37:12","slug":"transfer-fsmo-roles-powershell","status":"publish","type":"post","link":"https:\/\/www.msb365.blog\/?p=202","title":{"rendered":"Transfer FSMO Roles by PowerShell"},"content":{"rendered":"<p>If FSMO role holder DC goes under upgradation process or down,<\/p>\n<p>we think about FSMO roles as its important and we know the traditional NTDSUTIL way of transferring and seizing FSMO roles which takes few minutes.<\/p>\n<p>To transfer all 5 of the FSMO roles.<\/p>\n<pre>Move-ADDirectoryServerOperationMasterRole -Identity \u201cTarget_DC_name\u201d \u2013OperationMasterRole PDCEmulator,RIDMaster,InfrastructureMaster,SchemaMaster,DomainNamingMaster<\/pre>\n<p>transfer all 5 FSMO roles using numbers.<\/p>\n<pre>Move-ADDirectoryServerOperationMasterRole -Identity \u201cTarget_DC_Name\u201d \u2013OperationMasterRole 0,1,2,3,4<\/pre>\n<p>seize the roles using the \u2013Force parameter.<\/p>\n<pre>Move-ADDirectoryServerOperationMasterRole -Identity \u201cTarget_DC_name\u201d \u2013OperationMasterRole PDCEmulator,RIDMaster,InfrastructureMaster,\r\n\r\nSchemaMaster,DomainNamingMaster -Force<\/pre>\n<p>Of course could have used the short version<\/p>\n<pre>Move-ADDirectoryServerOperationMasterRole -Identity \u201cTarget_DC_Name\u201d \u2013OperationMasterRole 0,1,2,3,4 -force<\/pre>\n<p>command line syntax you can use role numbers in place of the role names. \u00a0The following list details the role number for each of the five FSMO roles.<\/p>\n<pre>PDC Emulator \u2013 0\r\n\r\nRID Master \u2013 1\r\n\r\nInfrastructure Master \u2013 2\r\n\r\nSchema Master \u2013 3\r\n\r\nDomain Naming Master \u2013 4<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/gallery.technet.microsoft.com\/PowerShell-TransferSeize-8e359e5a\">https:\/\/gallery.technet.microsoft.com\/PowerShell-TransferSeize-8e359e5a<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If FSMO role holder DC goes under upgradation process or down, we think about FSMO roles as its important and we know the traditional NTDSUTIL way of transferring and seizing FSMO roles which takes few minutes. To transfer all 5 of the FSMO roles. Move-ADDirectoryServerOperationMasterRole -Identity \u201cTarget_DC_name\u201d \u2013OperationMasterRole PDCEmulator,RIDMaster,InfrastructureMaster,SchemaMaster,DomainNamingMaster transfer all 5 FSMO roles using [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-202","post","type-post","status-publish","format-standard","hentry","category-powershell"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=202"}],"version-history":[{"count":3,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/202\/revisions"}],"predecessor-version":[{"id":346,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/202\/revisions\/346"}],"wp:attachment":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}