Solved

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

Posted on 2007-12-03
2
466 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 83

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction: I have always been a big fan of Windows but my liking towards it is slowly being eroded by the variety of other Applications that I encounter, when I browse the Web. Most of the software available is free and maybe Open Source too. …
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…
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). …
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now