Ryom
[H]ard|Gawd
- Joined
- Oct 11, 2006
- Messages
- 1,854
So I've got a small issue at work. We have a server running Windows Server 2008, and one of its functions is to run job ticketing software from Zoll which accepts runs from our contracted clients. The problem is that this program tends to crash, or the owner remotes into the server under his account and creates a duplicate process which stops it from accepting new runs as well. The main problem being that this is a silent failure until we get calls from clients asking why we aren't responding.
So I need an automated way to:
I imagine this can be done via Powershell scripting rather than relying on 3rd party tools. Anyone running a PS1 script similar to this that can share?
So I need an automated way to:
- Constantly monitor for the process 'PPDatabasesevices' to verify that it is currently running
- Execute that program if it is not running
- Monitor that only ONE instance of the process is loaded
- If there is more than one, kill the duplicate process that isn't running under the administrator user
- Send an error message/email to a domain workstation(s) if any part of this script fails
I imagine this can be done via Powershell scripting rather than relying on 3rd party tools. Anyone running a PS1 script similar to this that can share?