Luckily, the blog Buckinwell Fritish has a link to download Taskkill for those that don't have it! Just install and put in the Windows directory, and you're all set. The simplest command to kill a process is this (you can run it from the command prompt, or from doing Windows>Run):
taskkill /F /IM notepad.exe
notepad.exe can be any task you want to kill, like thunderbird.exe, firefox.exe, etc. For more documentation on it, check out Microsoft's official word.
Taskkill does basically the same exact thing as previously mentioned PSKill, but this just seems simpler and more organic than PSKill. When I have the time I plan on converting all my other scripts to use Taskkill and probably deleting all the PSTools as I don't have much of a use for the rest of them.
Thanks dude.
ReplyDeleteThis is so helpful thanks a ton
ReplyDeletethe link doesnt work :(
ReplyDelete404
ReplyDelete404
ReplyDeleteYou might as well delete this link, mate as its a very frustrating waste of time.
ReplyDeleteGet it here.
ReplyDeletehttp://web.archive.org/web/20070125030456/http://home.wanadoo.nl/gigajosh/files/taskkill_en.zip
Thanks XDS.
ReplyDeleteYou have made my day.
This article
ReplyDeletehttp://goo.gl/xF4Cp
may prove useful.
Great! The archived link still works.
ReplyDeleteAnd yes, a word of warning. NEVER EVER download a tool/executable from an untrusted source. If you want to make sure the file is legitimate, run it through the online virus scanner at Virustotal. Report for taskkill, here: https://www.virustotal.com/en/file/68156c822eac21bb1c1469302cd3eb316b3724fbff4e35bca30a1d65b642a5eb/analysis/