• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 485
  • Last Modified:

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
1 Solution
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.
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.
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.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now