Courtesy of some buggy third party software, we regularly (and frustratingly) have a task that sits in Task Manager and cannot be killed - all attempts to do so result in "Access denied". This question is really informative about what may be occurring... and what one might be able to do about it - e.g. invoke PsExec -s taskkill /im MyTask.exe /f
Can that wisdom be distilled into a "kill MyTask" shortcut to a cmd file so that a user can kill the program with a double-click? What are the contents of the cmd file? All of my attempts so far have been blocked by variations on "Access Denied" - if not for the task itself, then for PsExec. The account I am trying to run my script from has Administrator rights.