/bundles/itninjaweb/img/Breadcrumb_cap_w.png

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   [ - ] Hide Comments

Comments

Please log in to comment

Community Chosen Answer


Answers

3

Either launch a program as Smal suggested or a batch file should work. Pick one or the other. 

Answered 02/04/2014 by: dugullett
Red Belt

  • $(KACE_SYS_DIR) will be System32. These variables can be found by clicking the yellow "?" underneath dependencies.
Please log in to comment
Answer this question or Comment on this question for clarity

Answers

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 
Answered 02/04/2014 by: dugullett
Red Belt

  • Is step 2 also in the verify section?
Please log in to comment
0

No its in the on success section.

Answered 02/04/2014 by: poneill316
White Belt

Please log in to comment
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.

 

Answered 02/04/2014 by: poneill316
White Belt

Please log in to comment

Share