Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 484
  • 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
0
tuckcorp
Asked:
tuckcorp
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.
0
 
oBdACommented:
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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