Kace process kill script
I work in a medical office and we are having troubles with users not logging out of the EHR. I have written a copule of scripts for updating software but never to end a process. I have tired different ways to kill this process and all i get is a pending status from the run task window. I am not sure what I am doing wrong. Here is what i have for the settings on the script.
I have the script enabled and to only run on my local machine. I have run as an enterprise admin account.
The task is
1.verify the process "eClinicalWorks.exe *32" is running
2. kill the process "eClinicalWorks.exe *32.
Now i have tried a non 64bit version on this script thinking the *32 was affected the script and I still cant get that script to work either. I am not sure what i am doing wrong or were the problem with the script is. Someone please helpe
Answers (4)
Either launch a program as Smal suggested or a batch file should work. Pick one or the other.
Comments:
-
$(KACE_SYS_DIR) will be System32. These variables can be found by clicking the yellow "?" underneath dependencies. - dugullett 10 years ago
I've always used TASKKILL. You can get more info by typing TASKKILL /? in CMD prompt. In your case use
taskkill /IM eClinicalWorks.exe /F
Comments:
-
Is step 2 also in the verify section? - dugullett 10 years ago
How would I write the script to use a cmd instead of a kill process? This K1000 is new to me and i dont see any options to use a cmd line instead.
Comments:
-
"launch a program" - SMal.tmcc 10 years ago