Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2007-12-03
2
Medium Priority
?
481 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
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 2000 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

Independent Software Vendors: 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

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

972 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