How to Log into QuickBooks Desktop Automatically on Windows Startup - chadbuildsthings/qbd-db-research GitHub Wiki
Prerequisites
- Microsoft Windows (tested with Microsoft Windows Server 2022)
- Quickbooks Desktop (tested with Quickbooks Desktop for Enterprise)
- AutoHotkey v2
- Configured Windows to Automatically log in to a user account with adequate permissions on startup
Disable QuickBooks Helper Programs on Startup
- We do this to prevent the helper programs from starting up which can cause problems auto logging in if there’s an error. Note: the author doesn’t use Intuit Data Protect and takes software updates manually, so has no problem disabling these as potential crashes might interfere with automatic login.
- Win+i to open Settings App
- Search for and enter Startup Apps
- Turn off the following:
- Intuit Data Protect
- Program (Pretty sure this is the update program)
- Quickbooks
- Quickbooks Web Connector (we will schedule this to be turned on another way)
Setting up the AutoHotkey Scripts Folder and Script
Create the directory structure C:\AutoHotkey\Scripts and download qbstartup.ahk into this directory. Then edit the qbstartup.ahk to change the following environment variables to match that of your Quickbooks Desktop installation
Path to your QuickBooks executable
qbwPath := "C:\Program Files\Intuit\QuickBooks Enterprise Solutions 24.0\QBW.exe"
Path to your QuickBooks Web Connector Executable
qbwcPath := "C:\Program Files (x86)\Common Files\Intuit\QuickBooks\QBWebConnector\QBWebConnector.exe"
Path to your QuickBooks Company File
companyFilePath := "C:\Users\Public\Documents\Intuit\QuickBooks\Company Files\enter-company-filename-here.qbw"
QuickBooks Administator Username
username := "enter-admin-username-here"
Quickbooks Administrator Password
password := "enter-admin-password-here"
Create a Task in Task Scheduler
- Win+R > taskschd.msc > OK
- Create Task
- General Tab
- Name: qbstartup.ahk
- Run with highest privileges
- Note: this prevents UAC dialog on bootup
- Triggers Tab
- Click New…
- Begin the task: At Startup
- Enabled: check
- Click OK
- Click New…
- Actions Tab
- Click New…
- Action: Start a Program
- Program/script
- Click Browse…
- Select your AutoHotkey Executable
- e.g. C:\Program Files\AutoHotkey\v2\AutoHotkey64.exe
- Click Open
- Add arguments (optional): Add the path of your qbstartup.ahk script here in double quotes
- e.g. “C:\AutoHotkey\Scripts\qbstartup.ahk”
- Click OK
- Click New…
- Settings Tab
- Uncheck Allow task to be run on demand
- Check If the task fails, restart every 1 minute
- Attempt to restart up to 3 times
- If the running task does not end when requested, force it to stop
- If the task is already running, then the following rule applies: Do not start a new instance
- Click OK