1
Is it possible to use the task scheduler on windows to receive an email notification every time a program is installed? If so, how? Right now, I have a Task setup to notify when there is a login that uses the sendEmail application from Brandon Zehm, and I like that style, so if I could use that...
1Well, program installations are a pretty nebulous thing. Some just require you to copy some files to a folder. Catching that would be tricky. A best effort method would be to register a WMI event sink that would fire whenever the uninstall registry key changes. Be sure to cover the 32 bit and 64 bit keys both. – EBGreen – 2018-04-10T20:47:40.337
Oh.... you can use this method just as I wrote about in this post https://superuser.com/questions/1309840/display-event-details-in-message-when-attaching-a-task-to-an-event/1309955#1309955 but use the "Application" event log (i.e.
– Pimp Juice IT – 2018-04-10T22:06:56.163$event = get-eventlog -LogName Application ~
) and set it to look for Event ID11707
and1003
....This will send an email with that method when those events are generated and trigger the script to run. You could use the sendemail app with this rather than the PowerShell method as I use that command line for a lot of automated processes too and I wrote about that here https://superuser.com/questions/1023295/automatically-send-multiple-emails-from-outlook-at-specific-times/1023336#1023336 a while back but you could incorporate this to be run instead of the PowerShell method but it works just as well from my experience and I use sendemail a lot.
– Pimp Juice IT – 2018-04-10T22:11:00.897