what is the code for taskkill to kill all process started by a userid

what is the code for taskkill to kill all process started by a userid. Can you please actually show me a actual example. windows 2003 server
tuckcorpAsked:
Who is Participating?
 
oBdAConnect With a Mentor Commented:
Try this command:
taskkill /f /fi "USERNAME eq <TheUserID>" /im *
"/f" will force the processes to be closed, "/fi ..." is a filter for the user id specified (you can add TheDomain\ in front if necessary), and "/im *" will kill all processes started by the user id.
0
 
Ashish PatelCommented:
you can use tskill command from command prompt, but that wont kill processed started by a user. You will have to pass process id's to this command. For more info see the command help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.