Task Kill HELP

(imported topic written by nberger91)

I need help killing the skype.exe process as part of my uninstall action (which works)

I have tried all of the following commands, none of which work on Windows 7 (havent tried on WinXP). If i run TSKILL skype from command line manually it works, so dont know why running this as system through BigFix is failing. The log file indicates ‘command succeeded’ yet the process is still running.

Any ideas what Im doing wrong ?

dos cmd /c TSKILL skype

OR

wait {(pathname of client folder of site “BESSupport” & "\taskkill.exe /f “) & (if (name of operating system = “WinXP” OR name of operating system = “Win2003”) then " /im skype” else “skype”)}

OR

wait {(pathname of client folder of site “BESSupport” & "\taskkill.exe /f “) & (if (name of operating system = “WinXP” OR name of operating system = “Win2003”) then " /im skype.exe” else “skype.exe”)}

(imported comment written by MattBoyd)

I’m not sure what the advantage of using taskkill.exe from the BESSupport folder would be. It should be built into Windows (at least, XP and newer).

Try this:

wait taskkill.exe /IM “skype.exe” /T /F

The /T switch should terminate any child processes.

(imported comment written by nberger91)

Excellent. Thank you.

Hello,

I have tried the above command "wait taskkill.exe /IM “skype.exe” /T /F"and I received the status as failed and exit code 128 (There are no child processes to wait for.)

Then I removed /T and executed still same error.

Could you please suggest here?

Best regards,
Krishna tatikonda