Power shell script to monitor change in file content and send email with the change

Debadas Nayak 21 Reputation points


I need a script to monitor one of the config file and send me an email when the script sees any change in the content of the file.

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,345 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andreas Baumgarten 95,026 Reputation points MVP

    Maybe this is a good starting point for you:


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Andreas Baumgarten

    1 person found this answer helpful.
    0 comments No comments