Solved

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

Posted on 2007-12-03
2
478 Views
Last Modified: 2008-02-01
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
Comment
Question by:tuckcorp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Expert Comment

by:Ashish Patel
ID: 20396327
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
 
LVL 85

Accepted Solution

by:
oBdA earned 500 total points
ID: 20396982
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Log files are useful in diagnosing and repairing problems.  This is a list of common log files and their standard locations that I've compiled.   While this is not exhaustive, it is a pretty good list that I've found to be useful.  I may update it f…
The password reset disk is often mentioned as the best solution to deal with the lost Windows password problem. In Windows 2008, 7, Vista and XP, a password reset disk can be easily created. But besides Windows 7/Vista/XP, Windows Server 2008 and ot…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question