I am helping administer systems for a small business that (unfortunately) uses QuickBooks 14 to manage its accounting.
As an aside, is it just me or is QuickBooks one of the most poorly-programmed popular client-server applications in existence? Isn't Intuit making enough money that they could actually write a real client-server app instead of having the users access the storage directly via SMB?
The users use RDP Server running on Win2k8R2 to access the company file, which lives on a separate server dedicated to hosting files.
I have set up the scheduled backup feature in QuickBooks to schedule nightly backups.
Unfortunately, the backups will ocassionally fail - but the error messages provide virtually nothing in the way of helpful info - and I am fairly certain there are no network/NTFS permissions/sharing permissions issues preventing the backup as if there were, the backup would fail every time.
I am superstitious and believe that the backups would work every time if all users were logged out. I have never seen the backup fail when users are logged out.
The problem is I only know how to taskkill
to log the users out programatically; I know there is a button in the program to do that but I need it to run as a scheduled task right before the backup takes place. I don't want to use taskkill
every night as I feel this could lead to data issues.
How can I programatically and gracefully end all users' sessions in QuickBooks?