NightDesk IT

Active Directory · Updated 2 December 2026 · 8 min read

Active Directory Weekly Health Check: 12 Commands Every Admin Should Run

Active Directory usually breaks quietly. Replication stops, a DC drifts out of time sync, or nobody has backed up the domain in months, and you find out on the worst possible day. Fifteen minutes a week with these commands catches most of it early.

Run everything from an elevated PowerShell prompt on a domain controller, or on an admin workstation with RSAT installed. Commands that start with Get-AD or Search-AD need the ActiveDirectory module.

Part 1: Is the domain itself healthy?

1. Overall DC diagnostics

dcdiag /e /q

/e tests every DC in the forest and /q prints only errors. No output is the result you want. If something fails, rerun that test verbosely, for example dcdiag /test:Advertising /v.

2. Replication summary

repadmin /replsummary

Look at the fails column and the largest delta. A delta of minutes or a few hours is normal depending on site links. Days means replication is broken, and once it passes the tombstone lifetime (180 days on modern forests) that DC must be rebuilt, not repaired.

3. Replication detail when something fails

repadmin /showrepl * /errorsonly

This names the partner and the error code. The most common causes in small domains are DNS pointing at the wrong server, a firewall between sites, or a DC that was restored from a VM snapshot.

4. DNS

dcdiag /test:dns /e /v | Select-String "fail|error|warning"

Every DC should use another DC (or itself, as second) for DNS, never the router or a public resolver. A client or DC pointing at 8.8.8.8 is the root of a surprising number of "AD is slow" tickets.

5. FSMO role holders

netdom query fsmo

Make sure every role sits on a DC that still exists and is online. Decommissioned DCs that were never cleaned up are a classic finding in inherited domains.

6. Time synchronization

w32tm /monitor
w32tm /query /source

Kerberos fails when clocks drift more than five minutes by default. The PDC emulator should sync from a reliable external source; every other DC should sync from the domain hierarchy. If /query /source on a non-PDC returns Local CMOS Clock, fix it.

7. SYSVOL replication

dfsrmig /getglobalstate

You want Eliminated, meaning SYSVOL uses DFSR. If the domain still uses the old FRS engine, plan the migration: FRS is not supported on current Windows Server versions, and you cannot add a new DC running a recent version until it is done.

8. When was AD last backed up?

repadmin /showbackup

This shows the last system state backup time for each naming context. If the date is old or blank, you have no recent AD backup. A VM-level backup is better than nothing, but a supported system state backup is what makes authoritative restores possible.

Part 2: Is it secure and tidy?

9. Who is a Domain Admin right now?

Get-ADGroupMember "Domain Admins" -Recursive | Select-Object Name, SamAccountName
Get-ADGroupMember "Enterprise Admins" -Recursive | Select-Object Name, SamAccountName

Compare against last week. Any name you cannot explain is an incident until proven otherwise. Small domains often have a vendor account or an old employee sitting in here.

10. Stale and inactive accounts

Search-ADAccount -AccountInactive -TimeSpan 90.00:00:00 -UsersOnly |
  Where-Object Enabled | Select-Object Name, LastLogonDate
Search-ADAccount -AccountInactive -TimeSpan 90.00:00:00 -ComputersOnly |
  Where-Object Enabled | Select-Object Name, LastLogonDate

Enabled accounts nobody uses are free targets. Disable them first, move them to a holding OU, and delete after a month if nobody complains.

11. Passwords that never expire

Search-ADAccount -PasswordNeverExpires -UsersOnly |
  Where-Object Enabled | Select-Object Name

Service accounts often need this. For those, a long random password stored in a password manager is the minimum, and Group Managed Service Accounts (gMSA) are better where the application supports them.

12. The krbtgt account password age

Get-ADUser krbtgt -Properties PasswordLastSet | Select-Object PasswordLastSet

If this is years old, any attacker who ever got the hash can still forge tickets. Reset it twice, with enough time between resets for replication to complete, using Microsoft's documented procedure. Many small domains have never done this since the domain was created.

Turn it into a routine

Strong admin passwords and shared service account credentials should live in a proper team password manager, not a spreadsheet on the file server. See our comparison of password managers for small offices.

Inherited a domain and not sure what you are looking at?

NightDesk IT runs a full Active Directory health review remotely, outside your working hours, and hands you a prioritized fix list.

Book a free 30-minute check