Intimate User that exe is running or not

Dear EE,

Can you help to share info about any third party software to monitor any program exe, e.g. (Winword, or any software exe) is running or not and if not running then send email to a user.


Thanks
Netsol-NOSAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

John TsioumprisSoftware & Systems EngineerCommented:
Well there are a lot of solutions that would do something like what you want...but it would be useful to provide some more info on why you want something like this...
To give you a starting point you could code a program (in almost every language) that will implement a timer...on prespecified intervals it will check the Windows processes (pretty much like Task Manager) and if it finds a matches send the email.
Netsol-NOSAuthor Commented:
It is actually QA team requirement.
slightwv (䄆 Netminder) Commented:
Seems like something a fairly simple PowerShell script could perform.  There are many examples on searching for a process and sending an email.
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

Netsol-NOSAuthor Commented:
Appreciated if you please share some.

Thanks,
slightwv (䄆 Netminder) Commented:
I would start with Get-Process:
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-process?view=powershell-6

From that link:
Example 2: Get all available data about one or more processes

Then down in the docs further, if you need wildcards:
-Name

Accept wildcard characters: True

Once you find the process/program you are looking for, look at Send-MailMessage:
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/send-mailmessage?view=powershell-6
Netsol-NOSAuthor Commented:
The team is checking your solution and will get back to the forum in 1 or 2 days.

Thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Software

From novice to tech pro — start learning today.