Solved

batch file to kill all quickbooks processes

Posted on 2014-02-14
4
776 Views
Last Modified: 2014-02-14
There is a bug in QuickBooks 2011 (and other versions) networking which requires that, if a data file exists on another machine (a NAS in this case), you must kill all processes that begin with "QB" before starting quickbooks in order to avoid an error.

Is there a way to do this programmatically?  something like unix's killall(1) but for windows would be good for this.
0
Comment
Question by:1_21gigawatts
  • 2
4 Comments
 
LVL 14

Assisted Solution

by:comfortjeanius
comfortjeanius earned 250 total points
ID: 39859875
You can use this in your batch file

taskkill /f /im <process name>

Open in new window


save the file with the .bat extension
0
 
LVL 29

Accepted Solution

by:
becraig earned 250 total points
ID: 39859885
taskkill /F /im QB*

you can loop this for multiple computers if need be

for /f % in (serverlist.txt) do psexec \\% cmd /c taskkill /F /im QB*
0
 
LVL 14

Expert Comment

by:comfortjeanius
ID: 39859904
Plus with the batch file you can make a schedule task, How to schedule a Batch File to run automatically in Windows 7 | 8 plus with a schedule task you can deploy thru Group policy , Configure a Scheduled Task Item
0
 

Author Closing Comment

by:1_21gigawatts
ID: 39859906
Taskkill, huh. I never knew that existed. Points to you both, comforjeanius for being first, and becraig for the more complete syntax.

Thanks, folks.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi Friends, These registry tweaks will help you optimizing your Windows 7 system for any VDI. This will improve the machine performanance and can be used on normal systems also. These are few registry tweaks which will add value by enhancing the …
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question