Project

ADEssentials

PowerShell Active Directory helper functions to manage healthy Active Directory

Stars538
Forks73
Open issues11
PowerShell Gallery downloads619177
Releasev1.0.1
Language: PowerShell Updated: 2026-04-14T08:15:53.0000000+00:00

Curated Examples

Check Active Directory backup age

Use ADEssentials to review the last known Active Directory backup state across a forest or selected domains.

This example is useful when you need a quick recovery-readiness check before broader Active Directory troubleshooting or change work.

It comes from the source example at Examples/Example.06-CheckLastBackup.ps1.

When to use this pattern

  • You need to confirm whether Active Directory backups are recent enough.
  • You want a forest-wide check before planning changes.
  • You need a narrower check for one or more selected domains.

Example

Import-Module .\ADEssentials.psd1 -Force

# Check the whole forest
$LastBackup = Get-WinADLastBackup
$LastBackup | Format-Table -AutoSize

# Check selected domains
$LastBackup = Get-WinADLastBackup -Domain 'corp.example.com', 'child.corp.example.com'
$LastBackup | Format-Table -AutoSize

What this demonstrates

  • checking recovery readiness before deeper work
  • running both broad and targeted domain checks
  • producing a compact table that can be shared with the directory team

Source