Aug 052016

This script monitors a folder of folders for when they were last touched.  It will email any that haven’t been touched in the last 7 days.

We have all of our machines in the network backing up to the same drive on a domain server.  Because many of our domain machines are laptops, they don’t always get their backups completed each week.  So we use this to monitor which ones didn’t complete, and then we have a guy who goes around and forces the completion of the backups during the next week.

Configuration Details:

  • We run this weekly in a scheduled task.  At the end of the week.
  • You must configure pathA and pathB
    • We have our backups split by laptops and desktops, so we have 2 path’s we’re monitoring.
    • Just remove the code below if you are only reading 1 directory.  Add if needing more.
  • You must configure the email details in the script
    • $Subject
    • $EmailUser
    • $EmailPass
    • $EmailFrom
    • $EmailTo
    • $SMTPServer
    • $SMTPPort

The output:

email output

 Posted by at 8:55 pm

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">