立即强制执行A​​ctive Directory复制

Active Directory

活动目录

1 replication 1复制 2 delay is the cause of many problems. You can always change the schedule 2延迟是许多问题的原因。 您始终可以将时间表 3 to a minimum of 15 minutes but sometimes 15 minutes is too long. I have found sometimes you really need the change you just made to be replicated to all sites in the domain controllers now, and not 15 minutes from now. 3更改为最少15分钟,但有时15分钟太长。 我发现有时候您确实需要现在所做的更改才能复制到域控制器中的所有站点,而不是从现在开始15分钟。

One example is if you unlock a user’s ID at a remote site change and forget to connect to their local domain controller, they have to wait 15 minutes to try to logon. Time is money so waiting 15 minutes can cost a lot especially if it is a manager or director. Another scenario is you made an A-host record, and you need it replicated to the entire Active Directory forest. Now it is time to hurry up and wait for replication to occur3

一个示例是,如果您在远程站点更改时解锁用户的ID并忘记连接到其本地域控制器,则他们必须等待15分钟才能尝试登录。 时间就是金钱,所以等待15分钟可能会花费很多,尤其是如果是经理或董事。 另一种情况是您创建了A主机记录,并且需要将其复制到整个Active Directory林中。 现在该赶紧等待复制发生3

Active Directory replication is no longer something to wait on. If you have tried to use the Active Directory Sites and Service UI to force replication you know how hard it is. Then to verify that replication has occurred is nearly impossible from this AD Sites and Services. 

Active Directory复制不再是需要等待的事情。 如果您尝试使用Active Directory站点和服务UI来强制复制,那么您会知道它有多难。 然后,几乎不可能从此AD站点和服务中验证是否已发生复制。

You might ask why would you want to force replication? These are the benefits:

您可能会问为什么要强制复制? 这些是好处:

  • Site to site transfer of AD users, computers and any other objects changed includes all attribute changes (especially unlocks and password changes)

    AD用户,计算机和任何其他对象的站点到站点转移包括所有属性更改(尤其是解锁和密码更改)
  • DNS changes are transferred to all domain controllers

    DNS更改已传输到所有域控制器
  • File Replication Service (FRS) is triggered (mainly group policy changes)

    触发文件复制服务(FRS)(主要是组策略更改)
  • Distributed File System (DFS) transfers are triggered

    触发分布式文件系统(DFS)传输

1.  Right click PowerShell and run as an administrator

1.右键单击PowerShell并以管理员身份运行

2.  Paste the below three lines into PowerShell command prompt and hit enter

2.将以下三行粘贴到PowerShell命令提示符中,然后按Enter键

Import-Module ActiveDirectory
$DCs = (Get-ADForest).Domains | %{ Get-ADDomainController -Filter * -Server $_ } | select HostName
foreach ($DC in $DCs)  {   repadmin /syncall $DC.HostName    } 

Now verify that all syncall returns no errors for each DC.  Below is a link on how replication works if you’re interested2!

现在,验证所有syncall对于每个DC均未返回任何错误。 以下是您感兴趣时复制如何工作的链接2

To run the script again (while the PowerShell window is still open) just hit the up arrow on your keyboard. The last line of the script “foreach ($DC in $DCs)  { repadmin /syncall $DC.HostName  }” will appear. Then just hit enter, and it has been replicated again!

要再次运行脚本(PowerShell窗口仍处于打开状态),只需按键盘上的向上箭头。 脚本的最后一行将显示“

Now to see if your replication has occurred and completed just install Microsoft’s AD Replication status tool4 download here.

现在,要查看您的复制是否已经完成并完成,只需在此处安装Microsoft的AD复制状态工具4 下载即可

To install the tool just go to download link or see below4 . Just accept the defaults and complete. Then from your start menu just click AD Replication status tool 1.0 and when a pop up comes up just click OK. Then click the “Refresh Replication Status” button. Now look in the columns labeled “Last Successful sync” and “Last Attempted Sync.” If your times match AD replication was successfully. 

要安装该工具,只需转到下载链接或查看下面的4 。 只需接受默认值并完成即可。 然后从开始菜单中单击“ AD复制状态工具1.0”,然后在弹出窗口中单击“确定”。 然后单击“刷新复制状态”按钮。 现在查看标记为“上次同步成功”和“上次尝试同步”的列。 如果您的时间匹配,则AD复制成功。

-注意强制复制会导致流量使用量激增,因此请谨慎使用。 (-   Beware forcing replication can cause spikes in traffic usage, so use it sparingly. )

Reference links

参考链接

1 –Active Directory- https://en.wikipedia.org/wiki/Active_Directory  

1 -主动目录- https://en.wikipedia.org/w iki /活跃 _目录

2 - Understanding Urgent Replication - https://blogs.technet.microsoft.com/kenstcyr/2008/07/05/understanding-urgent-replication/

2-了解紧急复制-https://blogs.technet.micr osoft.com/ 肯斯特尔/ 2 008/07/05 / 理解 紧急的 -复制 上/

3 - Replication Scheduling - https://technet.microsoft.com/en-us/library/cc730954.aspx

3-复制计划-https: //technet.microsoft。 com / zh-cn / 库/ cc 730954.asp X

4 – Download link to Replication Status Tool  - https://www.microsoft.com/en-us/download/details.aspx?id=30005

4 –下载链接到“复制状态工具”-https: //www.microsoft.com/ 上/下 负载/德泰 ls.aspx?id = 30005

5 – The active directory Replication Status Tool (ADREPLSTATUS) - http://www.rebeladmin.com/2016/01/the-active-directory-replication-status-tool-adreplstatus/

5 –活动目录复制状态工具(ADREPLSTATUS)-http: //www.rebeladmin.com/ 2016/01 / th 主动式 激怒 说明 状态 ol-adrepls tatus /

翻译自: https://www.experts-exchange.com/articles/27779/Force-Active-Directory-Replication-Now.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值