当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] 如何检查 Active Directory 中的 FSMO 角色

作者:精品下载站 日期:2024-12-14 06:30:24 浏览:14 分类:玩电脑

如何检查 Active Directory 中的 FSMO 角色


安装 Active Directory 域服务后,FSMO(灵活单主操作)角色将安装在该 Windows Server 上。如果您在林中有多个域控制器或多个域,您想知道哪个 DC 拥有哪个 FSMO 角色。在本文中,您将了解如何检查 Active Directory 中的 FSMO 角色。

有多少个 FSMO 角色?

FSMO 有五个角色:

  1. 模式主机(每个林一个)

  2. 域命名主机(每个林一个)

  3. RID 主控(每个域一个)

  4. PDC 模拟器(每个域一个)

  5. 基础设施主机(每个域一个)

让我们看看如何使用不同的方法在 Active Directory 中查找 FSMO 角色。

使用命令提示符检查 FSMO 角色

使用命令 netdom query FSMO 获取 FSMO 角色。

您可以在命令提示符或 PowerShell 中运行该命令来查找 Active Directory 中的 FSMO 角色。

PS C:\> netdom query FSMO

Schema master               DC01-2019.exoip.local
Domain naming master        DC01-2019.exoip.local
PDC                         DC01-2019.exoip.local
RID pool manager            DC01-2019.exoip.local
Infrastructure master       DC01-2019.exoip.local
The command completed successfully.

使用 PowerShell 检查 FSMO 角色

您可以使用 PowerShell cmdlet 找到 FSMO 角色。您需要运行两个 cmdlet。

  1. 运行 Get-ADForest cmdlet 以获取架构主机域命名主机角色。

PS C:\> Get-ADForest | fl SchemaMaster,DomainNamingMaster


SchemaMaster       : DC01-2019.exoip.local
DomainNamingMaster : DC01-2019.exoip.local
  1. 运行 Get-ADDomain cmdlet 以获取RID 主机PDC 模拟器基础结构主机角色。

PS C:\> Get-ADDomain | fl RIDMaster,PDCEmulator,InfrastructureMaster


RIDMaster            : DC01-2019.exoip.local
PDCEmulator          : DC01-2019.exoip.local
InfrastructureMaster : DC01-2019.exoip.local

如果您希望在单个输出中包含所有 FSMO 角色,请使用以下脚本。

$forestInfo = Get-ADForest | Select-Object SchemaMaster, DomainNamingMaster
$domainInfo = Get-ADDomain | Select-Object RIDMaster, PDCEmulator, InfrastructureMaster

$AllFSMO = [PSCustomObject]@{
    SchemaMaster = $forestInfo.SchemaMaster
    DomainNamingMaster = $forestInfo.DomainNamingMaster
    RIDMaster = $domainInfo.RIDMaster
    PDCEmulator = $domainInfo.PDCEmulator
    InfrastructureMaster = $domainInfo.InfrastructureMaster
}

$AllFSMO | Format-List

使用 PowerShell 脚本获取 FSMO 角色

获取 FSMO 角色的一个极好方法是运行 Get-ADInfo.ps1 PowerShell 脚本。

C:\scripts\.\Get-ADInfo.ps1

这将显示 FSMO 角色以及有关您的 Active Directory 的更多信息。

Active Directory Info

Computers  = 5
Workstions = 1
Servers    = 4
Users      = 74
Groups     = 88

Active Directory Forest Name =  exoip.local
Active Directory Forest Mode =  Windows2016Forest
Active Directory Domain Mode =  Windows2016Domain
Active Directory Schema Version is 88 which corresponds to Windows Server 2019/Windows Server 2022

FSMO Role Owners
Schema Master         =  DC01-2019.exoip.local
Domain Naming Master  =  DC01-2019.exoip.local
RID Master            =  DC01-2019.exoip.local
PDC Emulator          =  DC01-2019.exoip.local
Infrastructure Master =  DC01-2019.exoip.local

使用 GUI 检查 FSMO 角色

要使用 GUI 检查 FSMO 角色,请按照以下步骤操作:

  1. 以管理员身份启动命令提示符

  2. 键入命令 regsvr32 schmmgmt.dll 并按 Enter

  3. 将出现一条消息,表明 schmmgmt.dll 中的 DllRegisterServer 成功。按确定

注意: 您必须注册 Active Directory 架构 MMC 管理单元才能使其在 MMC 管理单元列表中可用。

[玩转系统] 如何检查 Active Directory 中的 FSMO 角色

  1. 单击开始按钮,搜索运行,然后单击它。

[玩转系统] 如何检查 Active Directory 中的 FSMO 角色

  1. 输入mmc.exe,然后单击确定

[玩转系统] 如何检查 Active Directory 中的 FSMO 角色

  1. 单击文件并选择添加/删除管理单元

[玩转系统] 如何检查 Active Directory 中的 FSMO 角色

  1. 单击Active Directory 架构,选择添加,然后单击确定

[玩转系统] 如何检查 Active Directory 中的 FSMO 角色

  1. 单击Active Directory 架构加载配置。

  2. 右键单击Active Directory 架构,然后单击操作主机

[玩转系统] 如何检查 Active Directory 中的 FSMO 角色

  1. 将显示担任架构主机角色的域控制器。

[玩转系统] 如何检查 Active Directory 中的 FSMO 角色

  1. 启动Active Directory 域和信任

  2. 右键单击Active Directory 域和信任,然后单击操作主机

[玩转系统] 如何检查 Active Directory 中的 FSMO 角色

  1. 将显示担任域命名主机角色的域控制器。

[玩转系统] 如何检查 Active Directory 中的 FSMO 角色

  1. 启动Active Directory 用户和计算机

  2. 右键单击,然后单击操作主机

[玩转系统] 如何检查 Active Directory 中的 FSMO 角色

  1. 选择每个选项卡以查看哪个域控制器拥有 FSMO 角色:

  • RID主控

  • PDC模拟器

  • 基础设施大师

[玩转系统] 如何检查 Active Directory 中的 FSMO 角色

就是这样!

请阅读以下有关如何在组织中安装和配置两个域控制器的文章:

  • 在 Windows Server 上安装 Active Directory 域服务

  • 将域控制器添加到现有域

结论

您学习了如何检查 Active Directory 中的 FSMO 角色。使用 PowerShell 或 GUI 方法查找哪个域控制器在 Active Directory 中拥有哪个 FSMO 角色。

您喜欢这篇文章吗?您可能还喜欢在 Active Directory 中添加 UPN 后缀。不要忘记关注我们并分享这篇文章。

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯