zoukankan      html  css  js  c++  java
  • Powershell进行FSMO角色迁移的方法

    本章我们将介绍通过Powershell进行FSMO角色迁移的方法(记得以管理员身份运行Powershell,如果没有执行权限,记得Set-ExecutionPolicy Unrestricted调整执行权限),希望以下内容可以帮到大家。

    1、查看当前FSMO角色信息:

    查看林范围操作主机角色:
    Get-ADForest azureyun.local |ft SchemaMaster,DomainNamingMaster
    查看域范围操作主机角色:
    Get-ADDomain azureyun.local |ft InfrastructureMaster,Pdcemulator,RidMaster
    2、执行域命名主机角色(Domain Naming Master)、RID 主机角色(RID Master)和基础架构主机角色(Infrastructure Master)迁移,根据提示回车确认:

    Move-ADDirectoryServerOperationMasterRole -Identity Bdc -OperationMasterRole DomainNamingMaster,InfrastructureMaster,RIDMaster -force
    3、通过Powershell分别查看林范围跟域范围操作主机角色,确认迁移操作是否成功:

    Get-ADForest azureyun.local |ft SchemaMaster,DomainNamingMaster
    Get-ADDomain azureyun.local |ft InfrastructureMaster,Pdcemulator,RidMaster
    4、执行架构主机角色(Schema Master)、PDC 模拟主机角色(PDC Emulator)角色迁移,根据提示回车确认:

    Move-ADDirectoryServerOperationMasterRole -Identity Bdc -OperationMasterRole SchemaMaster,PDCEmulator -Force
    5、此时我们通过Powershell分别查看林范围跟域范围操作主机角色,发现迁移均已成功:

    Get-ADForest azureyun.local |ft SchemaMaster,DomainNamingMaster
    Get-ADDomain azureyun.local |ft InfrastructureMaster,Pdcemulator,RidMaster
    附操作实例图如下:

    附快速操作流程:

    A、查看当前域控制器名称,并确认当前林范围跟域范围操作主机角色信息:

    B、执行Powershell命令对五个角色进行一次性迁移操作:

    Move-ADDirectoryServerOperationMasterRole -Identity Major -OperationMasterRole SchemaMaster,DomainNamingMaster,PDCEmulator,InfrastructureMaster,RIDMaster -force
    移动操作主机角色
    你要将角色"SchemaMaster"移动到服务器"Major.azureyun.local"中吗?
    [Y] 是(Y) [A] 全是(A) [N] 否(N) [L] 全否(L) [S] 暂停(S) [?] 帮助 (默认值为"Y"):
    移动操作主机角色
    你要将角色"DomainNamingMaster"移动到服务器"Major.azureyun.local"中吗?
    [Y] 是(Y) [A] 全是(A) [N] 否(N) [L] 全否(L) [S] 暂停(S) [?] 帮助 (默认值为"Y"):
    移动操作主机角色
    你要将角色"PDCEmulator"移动到服务器"Major.azureyun.local"中吗?
    [Y] 是(Y) [A] 全是(A) [N] 否(N) [L] 全否(L) [S] 暂停(S) [?] 帮助 (默认值为"Y"):
    移动操作主机角色
    你要将角色"InfrastructureMaster"移动到服务器"Major.azureyun.local"中吗?
    [Y] 是(Y) [A] 全是(A) [N] 否(N) [L] 全否(L) [S] 暂停(S) [?] 帮助 (默认值为"Y"):
    移动操作主机角色
    你要将角色"RIDMaster"移动到服务器"Major.azureyun.local"中吗?
    [Y] 是(Y) [A] 全是(A) [N] 否(N) [L] 全否(L) [S] 暂停(S) [?] 帮助 (默认值为"Y"):
    PS C:>

    C、查看当前FSMO角色信息,发现已经迁移成功。

    PS C:> Get-ADForest azureyun.local |ft SchemaMaster,DomainNamingMaster
    SchemaMaster DomainNamingMaster


    Major.azureyun.local Major.azureyun.local
    PS C:> Get-ADDomain azureyun.local |ft InfrastructureMaster,Pdcemulator,RidMaster
    InfrastructureMaster Pdcemulator RidMaster


    Major.azureyun.local Major.azureyun.local Major.azureyun.local

    通过图形化、Ntdsutil命令行及Powershell命令三种方法进行FSMO角色迁移,我们发现还是通过Powershell进行迁移操作更简单更快捷,希望可以帮到大家。

  • 相关阅读:
    数据库课程设计心得【3】存储过程的运用
    看BBC研究大脑的科教片中“放松产生灵感”的笔记
    成功干掉“恶心的U盘自动运行病毒免疫目录”!共享方法,让更多的人干掉这东西!
    分享一大堆最新dot net asp.net c# 电子书下载 , 英文原版的。经典中的经典
    SQL学习之 对GROUP BY 和 HAVING 的理解 学习笔记
    关于Theme中.skin与css需要理清的关系
    最近的学习笔记,记录一些通俗易懂的学习类文章。更像是好资料参与索引。
    关于DNN Module开发学习以来的一点总结
    工具发布!QQ空间阅读与备份工具
    被忽视的大道理
  • 原文地址:https://www.cnblogs.com/wulongy/p/14690247.html
Copyright © 2011-2022 走看看