Intuit Quickbooks runs a database server as a Windows Service. When it dies, it is not automatically restarted. When a user starts Quickbooks, it is fine; QuickBooks notices and restarts the service. However, if the user is not an administrator, it fails with the message THIS ACTION REQUIRES ADMINISTRATOR PERMISSIONS.
There are several fixes available (one is to not use QuickBooks in anything but a workstation). One, which I'm scared to try is documented at https://community.spiceworks.com/topic/603605-quickbooks-occasionally-asks-for-windows-admin-permissions-for-dbmanagerexe-exe. I'm concerned how to recover if that doesn't work (since we don't know the QB user password).
Following appears to fix the problem, however.
@ECHO OFF FOR /F "tokens=3 delims=: " %%H IN ('SC QUERY "ServiceName" ^| FINDSTR " STATE"') DO ( IF /I "%%H" NEQ "RUNNING" ( NET START "ServiceName" ) )
You can test by shutting down the service in question, then running the task (find task in Task Scheduler, right click, select Run). The service should now start (you will have to refresh the Service Manager)