How can I end a job without disconnecting the remote session?

0

How can I end a job on a windows 2008 server that has sat idle for 30 minutes without ending the user session? We have users that run a job then minimize the job and go on to other tasks. Because of licensing isues, we can only have a limited number of this job running at any one time, so I need to be able to automatically monitor these copies of the job and when one has sat for 30 minutes without activity, force it to end.

user304145

Posted 2014-03-01T01:32:59.170

Reputation: 1

Answers

1

Use Task Manager to kill the job and keep your session in tact. Make sure to pay attention to the UID column so that you know who's job your killing.

SaxDaddy

Posted 2014-03-01T01:32:59.170

Reputation: 3 181

And this can be an automatic function, based on the task being inactive for a period of time? – user304145 – 2014-03-01T02:02:51.243

No, I was assuming you were manually killing the processes interactively. You could code something in PS or VBS to monitor a process from a user (excluding SYSTEM of course) and if the CPU is below a threshold for more than X minutes, kill the process. – SaxDaddy – 2014-03-01T02:13:22.383