Email Notifications On Program Install

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...

owen sziber

Posted 2018-04-10T20:37:30.537

Reputation: 13

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. $event = get-eventlog -LogName Application ~) and set it to look for Event ID 11707 and 1003....

– Pimp Juice IT – 2018-04-10T22:06:56.163

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

Answers

0

Yes as Pimp Juice said, I would look for the event log (see down the page https://www.netwrix.com/how_to_detect_software_installations.html) and then to send an email read this (http://www.dummies.com/computers/pcs/how-to-create-a-task-to-send-e-mail-in-windows-task-scheduler/)

hope that helps.

user893060

Posted 2018-04-10T20:37:30.537

Reputation:

Thanks. I just modified the instructions from the netwrix article to send the email. Thanks a lot! – owen sziber – 2018-04-11T17:04:44.480

Great; Glad to help :-) – None – 2018-04-13T01:40:20.380

Actually, on Stack Exchange we want to use links only as reference. Everything should be explained within the answer. – davidbaumann – 2018-04-13T11:29:08.280