Link to home
Start Free TrialLog in
Avatar of MiketheD
MiketheD

asked on

How to monitor a Process in windows 2003 and Terminate IT.

All,

I'm looking to write something in VB.Net (2005) that will monitor a process on a windows 2003 server and if it runs for more than X amount of time, terminate it.

In a nutshell, the server has a program that is launched from a remote PC to run a report and occasionally locks up. Since the user doesn't have access to the server, they keep trying to launch the report again and again but finally give up. I know from past experience I can terminate the process using pskill or taskill, I'm just looking for a way to automate it. Basically, if the "x process" runs for more than a minute, kill it...

Thanks in advance,

Mike
Avatar of MatthiasVance
MatthiasVance
Flag of Netherlands image

Will the application run on the server itself or from a remote location?

Kind regards,

Matthias Vance
Avatar of MiketheD
MiketheD

ASKER

Matthias,

Thanks for your reply... On the server...
ASKER CERTIFIED SOLUTION
Avatar of MatthiasVance
MatthiasVance
Flag of Netherlands 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