AD域控中如何转移五大角色
本文中将探讨如何将FSMO角色从一台服务器转移到另一台服务器。我将在cmd命令行和PowerShell命令行中进行此操作。
系统环境
系统:Windows Server 2012 R2 Std
域名:example.com
环境中有两台系统。DC和DC2,本文将DC中的五大角色转移到DC2。
在cmd命令行中使用ntdsutil命令
首先查看五个角色在哪台服务器上面:
> netdom query fsmo
在主域控和辅助域控都正常运行的时候 角色迁移,使用Transfer:
>ntdsutil
ntdsutil: roles
fsmo maintenance: connections
server connections: connect to server DC2 //连接到辅助域控制器
server connections: q //quit to up level 返回到上一级
fsmo maintence: transfer naming master
fsmo maintence: transfer PDC
fsmo maintence: transfer RID master
fsmo maintence: transfer schema master
fsmo maintence: transfer infrastructure master
后面四个角色同样选择Yes,确认转移。
完成转移之后,再来使用
netdom
查看一下五个角色所在的服务器。> netdom query fsmo
Tips:
如果主域控Down了。在辅助域控制器中强占五个角色,同样使用上面的命令进行转移,只是将
Transfer
命令替换为Seize
。在PS中使用Move-ADDirectoryServerOperationMasterRole命令
要将5个角色转移到另一个域控制器,可以运行以下命令。其中
-Identity
指定辅助域控制器,-OperationMasterRole
指定需要转移的角色。-force
强制执行,当主域控制器Down掉,-force
选项在辅助域控制器中就派上用场了。> Move-ADDirectoryServerOperationMasterRole -Identity DC2 -OperationMasterRole 0,1,2,3,4 -force
执行ntdsutil命令,可以看到五个角色已经转移到DC2了。
下面详细列出了五个FSMO角色对应的0,1,2,3,4五个序号。
PDC Emulator – 0
RID Master – 1
Infrastructure Master – 2
Schema Master – 3
Domain Naming Master – 4
官方站点:www.linuxprobe.com
Linux命令大全:www.linuxcool.com
刘遄老师QQ:5604922
Linux技术交流群:193666693
(新群,火热加群中……)
想要学习Linux系统的读者可以点击"阅读原文"按钮来了解书籍《Linux就该这么学》,同时也非常适合专业的运维人员阅读,成为辅助您工作的高价值工具书!
阅读原文 最新评论
推荐文章
作者最新文章
你可能感兴趣的文章
Copyright Disclaimer: The copyright of contents (including texts, images, videos and audios) posted above belong to the User who shared or the third-party website which the User shared from. If you found your copyright have been infringed, please send a DMCA takedown notice to [email protected]. For more detail of the source, please click on the button "Read Original Post" below. For other communications, please send to [email protected].
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。