win域控 辅助域切换主域

安装辅助域并修改DNS,最好先把IPv6禁用
在主域上以管理员cmd运行 repadmin /replicate 目标主机 源主机 dc=bim999,dc=cn /force
repadmin.exe /showrepl 查看当前运行命令这台DC的活动目录复制状态
repadmin.exe /showrepl servername 查看某一台DC的活动目录复制状态
repadmin.exe /queue servername查看某一台DC的复制队列
repadmin.exe /replsummary 查看一个简短的总结性质的复制状态

通过netdom query fsmo查看当前FSMO角色位置

用下面命令获取五大角色控制权
ntdsutil
roles
connections
connect to server mainserver.bim999.cn
quit
Transfer schema master
Transfer RID master
Transfer PDC
Transfer naming master
Transfer infrastructure master
quit
quit

再运行 netdom query fsmo 查询

然后修改dns,就可以了。

目录复制工具Repadmin用法
1.检测域控制器的复制伙伴
repadmin /showrepl sz-domain dc=zjdomain,dc=com
说明:dc options:is_gc表示该服务器为GC
sz表示站点。会看到复制成功的时间。
2。检测域控制器的高水印标记值,并同时显示复制伙伴。
repadmin /showrepl sz-domain dc=zjdomain,dc=com /verbose
其中 USNs:后面的就是高水印标记值,目前还不知道有什么用。
3。强制BDC从主域进行复制
repadmin /replicate sz-domain2 sz-domain dc=zjdomain,dc=com /force
repadmin /replicate 目标DC名 源DC名 分区名称,即把sz-domain的配置同步到sz-domian2上
手动复制,需要时间,成功后会有提示
4。使用知识一致性检查复制完整性
repadmin /kcc sz-domain
5.检测域控制器的已经建立的信任关系
repadmin /showtrust sz-domain
6。显示域控制器之间复制数量和状态
repadmin /replsummary
该命令可以看出成功的次数、错误信息、系统运转了多长时间、目前系统检测的时间等
7。同步目标域控制器
repadmin /syncall sz-domain2
如果有错误,会提示。这种同步不指定路径
8.同步所有域控制器
repadmin /syncall
9.同步直接复制伙伴
repadmin /syncall /j
10.检查已经部署的AD站点
dsquery site
11.查看站点中的服务器
dsquery server -site 站点名
12.查询站点间拓扑生成器使用的域控制器
repadmin /istg

Please Note

After we remove a DFS root target, DFS stops giving referrals to the decommissioned server within 15 minutes of the update to the DFS Active Directory directory service object. The DFS Active Directory object resides on the local domain controller and is issued by the PDC emulator master. The time that the update can take depends on Active Directory replication schedules.

Afterwards, you may try to run "dfsrdiag PollAD" on the problematic server to manually trigger a sync with the global information settings in the Active Directory.

Meanwhile, please also try to flush the DFS cached information and local DFS/MUP cached information on the problematic server which you launched the DFS management console.

Dfsutil /PktFlush

Dfsutil /SpcFlush

Dfsutil /PurgeMupCache

标签: none

评论已关闭