.\Invoke-ADReplicationReport.ps1
This example gets the replication status of the local computer and all of its replication partners.
.\Invoke-ADReplicationReport.ps1 -Server <DC1>
This example gets the replication status of the specified DC and all of its partners.
.\Invoke-ADReplicationReport.ps1 -Server *
This example gets the replication status of all DCs and all of their replication partners.
# define the email parameters
$emailReport = @{
SmtpServer = 'mail.theitbros.com'
From = 'monitoring@theitbros.com'
To = 'alpha@theitbros.com'
Subject = 'Active Directory Replication Health'
BodyAsHTML = $true
}
# Generate the report and send via email
.\Invoke-ADReplicationReport.ps1 -Server * -EmailReport $emailReport