Server 2012 R2 部署域控、额外域控及FSMO角色转移和夺取

清除元数据后,打开DNS服务,在正向和反向查找区域中删除有关2012R2DC2的记录。如下图

最后打开AD站点和服务,删除默认站点——Servers下的2012R2DC2,如下图

删除后,重启Server2012R2DC1.至此清理宕机服务器的数据已经完成。

附:在客户端查询FSMO角色脚本(将下面代码复制到文本中,将后缀改为vbs,然后在客户端执行即可)

Set objRootDSE = GetObject(\Dim text ' Schema Master

Set objSchema = GetObject(\strSchemaMaster = objSchema.Get(\Set objNtds = GetObject(\Set objComputer = GetObject(objNtds.Parent)

text=\Set objNtds = Nothing Set objComputer = Nothing ' Domain Naming Master

Set objPartitions = GetObject(\objRootDSE.Get(\

strDomainNamingMaster = objPartitions.Get(\Set objNtds = GetObject(\Set objComputer = GetObject(objNtds.Parent)

text=text&\Set objNtds = Nothing Set objComputer = Nothing ' PDC Emulator

Set objDomain = GetObject(\strPdcEmulator = objDomain.Get(\Set objNtds = GetObject(\Set objComputer = GetObject(objNtds.Parent)

text=text&\Set objNtds = Nothing Set objComputer = Nothing ' RID Master

Set objRidManager = GetObject(\objRootDSE.Get(\

strRidMaster = objRidManager.Get(\Set objNtds = GetObject(\Set objComputer = GetObject(objNtds.Parent)

text=text&\Set objNtds = Nothing Set objComputer = Nothing ' Infrastructure Master

Set objInfrastructure = GetObject(\objRootDSE.Get(\

strInfrastructureMaster = objInfrastructure.Get(\Set objNtds = GetObject(\Set objComputer = GetObject(objNtds.Parent)

text=text&\WScript.Echo text

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4