最後更新: 2019-07-08
介紹
對於剛安裝好的 DC, 執行 dcdiag 九成會有 Error, 改用 repadmin 去 verify DC 的 replication 會較好
Install
Old OS
Active Directory Replication Status Tool
http://www.microsoft.com/en-us/download/details.aspx?id=30005
Need: dotNet 3.5SP1 + dotNet 4
New OS
Repadmin is part of Remote Server Administrator Tools (RSAT).
If you are using Windows 10, version 1803 or an earlier version of Windows,
download Remote Server Administration Tools (RSAT).
repadmin Usage
# quickly and concisely summarizes the replication state and relative health of a forest.
repadmin /replsummary
Replication Summary Start Time: 2019-07-08 17:36:18 Beginning data collection for replication summary, this may take awhile: ..... Source DSA largest delta fails/total %% error AD01 22m:44s 0 / 5 0 AD02 36m:55s 0 / 5 0 Destination DSA largest delta fails/total %% error AD01 36m:55s 0 / 5 0 AD02 22m:44s 0 / 5 0
# Displays the replication status when specified domain controller last attempted to inbound replicate Active Directory partitions.
repadmin /showrepl [servername]
Last attempt @ <YYYY-MM-DD HH:MM.SS> was successful. Last attempt @ [Never] was successful.
# If @ [Never] appears in the output for a directory partition,
# replication of that directory partition has never succeeded from the identified source replication partner over the listed connection.
# 查看 INBOUND NEIGHBORS for the current or specified domain controller.
# replication queue
# If you have a small environment it will often be at zero
Repadmin /Queue
Sync
# Synchronizes a specified domain controller with all replication partners. (PULL)
Repadmin /syncall
Backup
# Find the last time your DC were backup
Repadmin /showbackup *