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

Debadas Nayak 21 Reputation points
2020-12-18T12:13:35.667+00:00

Hi,

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,462 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andreas Baumgarten 104K Reputation points MVP
    2020-12-18T12:45:43.307+00:00

    Maybe this is a good starting point for you:

    https://gallery.technet.microsoft.com/scriptcenter/Powershell-FileSystemWatche-dfd7084b


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

    Regards
    Andreas Baumgarten

    1 person found this answer helpful.
    0 comments No comments