Running TaskKill using PDQ Deploy


You wish to force a process to end by leveraging TaskKill in a PDQ Deploy package.


When you run taskkill.exe from PDQ Deploy (usually in a Command Step in PDQ Deploy) it is important to add the exit code '128' as a Successful Return Code. Code 128 means that the process you attempted to kill wasn't actually running on the target system. If your desire is to kill an application prior to an upgrade, for instance, an error code of 128 will, by default, look like a failure to PDQ Deploy.


Was this article helpful?
Still have a question or want to share what you have learned? Visit our Community Discord to get help and collaborate with others.