/build/static/layout/Breadcrumb_cap_w.png

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


0 Comments   [ + ] Show comments

Answers (4)

Posted by: dugullett 10 years ago
Red Belt
5

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
Posted by: dugullett 10 years ago
Red Belt
0

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
Posted by: poneill316 10 years ago
White Belt
0

No its in the on success section.

Posted by: poneill316 10 years ago
White Belt
0

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

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ