Repadmin Commands — Quick Reference and Use Cases

Repadmin is a command-line utility used to diagnose and manage Active Directory replication. It allows administrators to view topology, monitor health, force synchronization, and troubleshoot complex directory issues.

It is installed with:

  • Active Directory Domain Services (DC role)
  • RSAT tools

Run from an elevated command prompt.

repadmin /?

Displays the master command list and syntax help.


Command Categories

1️⃣ Forest & Domain Overview

Replication Summary

repadmin /replsummary

Purpose

  • Forest-wide replication health overview
  • Shows largest delta and failure counts

When to use

  • First check during incidents
  • Daily health validation

Replication Latency

repadmin /latency *

Purpose

  • Shows replication delays between DCs

When to use

  • Performance troubleshooting
  • WAN/site issues

Show All Replication

repadmin /showrepl *

Purpose

  • Displays replication partners for all DCs

When to use

  • Forest-wide investigation

Bridgehead Servers

repadmin /bridgeheads

Purpose

  • Lists bridgehead assignments

When to use

  • Site topology debugging

2️⃣ Domain Controller Inspection

Show Replication Partners

repadmin /showrepl <DC>

Purpose

  • Displays inbound replication status

Replication Queue

repadmin /queue <DC>

Purpose

  • Shows pending replication operations

Fail Cache

repadmin /failcache <DC>

Purpose

  • Displays cached replication failures

View Connections

repadmin /showconn <DC>

Purpose

  • Shows connection objects

View DC Object Metadata

repadmin /showmeta <DC>

Purpose

  • Displays metadata for DC

3️⃣ Synchronization & Control

Force Replication

repadmin /syncall <DC> /AeD

Options:

SwitchMeaning
/AAll naming contexts
/eEnterprise
/PPush
/dIdentifies servers
/qQuiet

Single Partner Sync

repadmin /replicate <DestDC> <SourceDC> <NC>

Use

  • Targeted replication

Run KCC

repadmin /kcc <DC>

Purpose

  • Recalculate topology

Abort Sync

repadmin /syncall /abort

4️⃣ Topology & Naming Context Tools

Show Naming Contexts

repadmin /shownc <DC>

Show UTD Vector

repadmin /showutdvec <DC> <NC>

Purpose

  • Tracks update propagation

Show Vector Table

repadmin /showvector /latency <DC>

Show Sites

repadmin /showsites

5️⃣ Object-Level Investigation

Object Metadata

repadmin /showobjmeta <DC> "<DN>"

Use

  • Track attribute changes

Attribute Metadata

repadmin /showattr <DC> "<DN>"

Verify Object Existence

repadmin /verifyobjects <DC>

6️⃣ Lingering Object Management

Advisory Scan

repadmin /removelingeringobjects <DestDC> <SourceGUID> <NC> /ADVISORY_MODE

Removal

repadmin /removelingeringobjects <DestDC> <SourceGUID> <NC>

Check Lingering Objects

repadmin /checkobjects <DC>

7️⃣ Database / Invocation ID / Metadata

Show Invocation ID

repadmin /showrepl <DC> /verbose

Show Backup Info

repadmin /showbackup <DC>

Show Time

repadmin /showtime <DC>

8️⃣ Security & Permissions

Replication Permissions

repadmin /showrepl <DC> /errorsonly

Credential Testing

repadmin /bind <DC>

9️⃣ Advanced Diagnostics

DSA List

repadmin /dsaguid

Show Message Details

repadmin /showmsg <DC>

Show Trust Info

repadmin /showtrust

Notify Replication Partner

repadmin /notifyopt <DC>

🔟 Rare / Specialist Commands

These appear mostly in deep support cases:

/experthelp
/regkey
/prp
/rehost
/replsingleobj
/viewlist
/wait

These are rarely used in day-to-day enterprise operations and usually require Microsoft support guidance.


Recommended Troubleshooting Workflow

If replication is broken — don’t randomly run commands. A sensible sequence:

1️⃣ Health Check

/replsummary

2️⃣ Identify DC Issues

/showrepl *

3️⃣ Investigate Target

/showrepl <DC>
/queue <DC>

4️⃣ Fix Topology

/kcc

5️⃣ Force Sync

/syncall

6️⃣ Deep Investigation

/showobjmeta
/showutdvec
/removelingeringobjects

Leave a Comment