taskkill.exe and PsTools

I was looking for a way to kill running tasks from the command line in XP when I came across information about the command line utility taskkill.exe. This does the trick but isn't available in XP Home. It will work with XP Home however.

I found an unofficial link to taskkill.exe here.

Alternatively you might want to check out another officially downloadable Microsoft utility called PsKill. PsKill will do the same job as taskkill.exe.
At the following link you'll find a description of PsKill and a download link for the PsTools suite that contains PsKillhttp://technet.microsoft.com/en-us/sysinternals/bb896683.aspx
[ thanks for the tip Anonymous ;-) ]

If you're still determined to proceed with taskkill.exe, Here is Microsoft's documentation on taskkill.exe and here are some usage examples from Computerhope.

Comments

  1. why is it in german

    ReplyDelete
  2. I guess because it originally came from a German version of XP!
    I'll see if I can swap it for an English version :)

    ReplyDelete
  3. By the way it is dutch not german.

    A german.

    ReplyDelete
  4. Jeff,
    See my links above for the taskkill.exe syntax and some examples. You have to know a bit about writing atch files yourself because it's not my strong point ;)
    I tried executing taskkill using a wildcard ('*') character in the computer name or IP address (when using the /s switch) but it didn't work.
    So all I can suggest is writing your batch file like this:
    c:\taskkill /s {computer_name_1} {parameters}
    c:\taskkill /s {computer_name_2} {parameters}
    c:\taskkill /s {computer_name_3} {parameters}
    So you hard code the computer names in the batch file. If the names are always the same, then at least you'll only have to do this once.
    If you don't know the names, but do know the IP addresses, use those instead.
    If you're dealing with a lot of IP addresses, find a friend to write you a batch file which loops thru all the IP addresses. I can't write batch file code off the top of my head, but here's the pseudocode:
    Where x=1 until 254
    Do c:\taskkill /s 192.168.1.x {parameters}

    Regards,
    Josh

    ReplyDelete
  5. for taskkill you dont have to specify and computer name etc, just whether it is an image or not then the .exe extension. just thought that might help if you havent already solved this

    ReplyDelete
  6. for taskkill you dont have to specify and computer name etc, just whether it is an image or not then the .exe extension. just thought that might help if you havent already solved this----------------------------------

    ReplyDelete
  7. YAYZ! you made me a happy person! xD

    ReplyDelete
  8. Well, that's definitly not a German version - to me, a native German speaker, it looks more like a version from Netherlands. Though the Dutch and German language look to non-natives very similar, it's really not the same. I don't understand Dutch, and I believe the Netherlanders don't understand German - at least as long as they didn't learn it ;-)

    Greetings,
    Sammy

    ReplyDelete
  9. Dankjewel voor de nederlandse taskkill, dit is de enige plek waar je die kan vinden. :D

    Thanks for the dutch version of taskkill, this is the only place where you can find it. :D

    ReplyDelete
  10. This is all grate and all but the link isn't working...

    ReplyDelete
  11. 404 blues.

    ReplyDelete
  12. Please delete the link.

    ReplyDelete

Post a Comment

I really appreciate you taking the time to comment, thank you!

Popular posts (all time)

Unsync and Remove iPhone Contacts From Facebook

WhatsApp from your Phone & Computer at the same time (PC/Mac)

How I Fixed Mac OSX Lion NTFS issue

How to get an SSH server running on a Mac