Intimate User that exe is running or not

Netsol-NOS
Netsol-NOS used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
John TsioumprisSoftware & Systems Engineer

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

Author

Commented:
It is actually QA team requirement.
Most Valuable Expert 2012
Distinguished Expert 2018

Commented:
Seems like something a fairly simple PowerShell script could perform.  There are many examples on searching for a process and sending an email.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
Appreciated if you please share some.

Thanks,
Most Valuable Expert 2012
Distinguished Expert 2018

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

Author

Commented:
The team is checking your solution and will get back to the forum in 1 or 2 days.

Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial