The purpose of this project is to receive every day an email containing the status of the Active Directory database backup of all the domain controllers in a forest.

I use the result from the following command :

repadmin /showbackup *

The result of this command is formatted and is sent by email.

The report contains 3 parts :

  • backup problem : the backup age is older than 2 days
  • error messages : error messages when running the repadmin command on a specific domain controller
  • backup ok

This script can be scheduled to run daily on a server with valid credential to run the repadmin command.
Script :

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Social Media Auto Publish Powered By : XYZScripts.com
%d bloggers like this: