Link to home
Start Free TrialLog in
Avatar of gd6627
gd6627Flag for United States of America

asked on

Ability to monitor a process

I have a need for a powershell script that monitors a process for example if I wanted to moinitor the sprint spooler service on a server I like to run a PS script as a task on the server that will check when the spooler stops working , then send me an email that it stopped , then try to restart the service if it failed to restart the service to let me know via email or if it succeeded to restart to let me know it successfully did so. if those options fail I would like the script to restart the server after 10 min. and let me know that the server was restarted. IS that possible?
SOLUTION
Avatar of McKnife
McKnife
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gd6627

ASKER

that wont work if am not at the server to be notified . I need to know when it stops and I need to restarted automatically  and get notified wether it did or not
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gd6627

ASKER

ok I see what you mean thank you
If that solved your problem, please select it as an answer in order to close this question.
Solved and then abandoned.
Avatar of gd6627

ASKER

thanks for you r help