Install guide
About 10 minutes: unzip the download, double-click it, and answer five questions. There are no scripts to run and no settings files to edit. Nothing is installed on GP workstations, and GP itself isn't touched.
Watch it first
What you need
- SQL Server 2017, 2019, 2022 or 2025 holding your GP databases. 2016 SP1 is expected to work; 2014 and older aren't supported. Express works too, without SQL Agent.
- A Windows server on your domain that can reach that SQL Server. The SQL Server machine itself is fine.
- Permissions: local admin on that Windows server, and a SQL Server sysadmin sign-in: your Windows account, or a dedicated SQL login with sysadmin rights. Don't run setup as sa. The sign-in setup uses and the LedgerDoctor database's owner are different things: setup creates the database owned by sa, whichever sign-in you use. If a LedgerDoctor database already exists and another login owns it, setup warns and shows the commands a SQL Server administrator runs to change the owner (it never changes it itself). Setup uses the sign-in only while it runs and doesn't save it.
- A license key: from the welcome page after you ordered, or start a free 45-day trial to get one. And the zip from the download page, which needs no key.
The Windows server needs to reach https://api.myledgerdoctor.com on port 443 for license checks and check library updates. It also reaches whatever you set up later: your email, Teams or Slack, and your Sage Intacct during a migration. Every connection it makes, and what each carries, is on our Security page.
Steps
-
Unzip and double-click
Unzip the download anywhere on the Windows server; your Downloads folder is fine. In the
Ledger Doctorfolder, double-clickLedgerDoctor.Service.exeand choose Yes when Windows asks to allow changes. Setup opens in your web browser. Keep the small setup window open until it's finished.LedgerDoctor.Service.exeis code-signed by Geekery, LLC, so Windows names the publisher. To check the download first, compareGet-FileHash .\LedgerDoctor-*-win-x64.zip -Algorithm SHA256in PowerShell with the SHA-256 on the download page. If Windows says "unknown publisher", don't run it: see Windows says "unknown publisher". -
Enter your license key
Paste the key from the page you landed on after ordering. Setup checks it with our server before it changes anything.
-
Connect to your GP SQL Server
Type the SQL Server name, like
GPSQL01orGPSQL01\GPfor a named instance, and sign in as a sysadmin: your Windows account, or a dedicated SQL login with sysadmin rights, not sa. (That's only how setup signs in; the LedgerDoctor database is owned by sa.) Setup finds the GP system database and lists every GP company. They're all checked; uncheck any you don't want monitored.
Connecting to SQL Server. Sample data. -
Choose who can approve fixes
List the Windows users or groups allowed to apply and undo fixes and change settings, one per line, like
RIDGE\Ledger Doctor Approvers. Setup checks each name with Windows. Everyone else on your network can view the dashboard, preview fixes and work the close checklist. -
Check the options and install
The web address uses port 47474 unless you pick another. The daily email report is optional and can be added later (see Email). Choose Install, and setup:
- creates the LedgerDoctor database and loads the checks, or upgrades it if it's already there
- creates Ledger Doctor's own SQL login with a random password nobody needs to know, and gives it two server-wide view permissions, read access to every GP company, and write access to only the tables and columns the one-click fixes and GP's batch housekeeping need (the full list is on the Security page)
- copies Ledger Doctor to
C:\Program Files\Ledger Doctorand writes its settings file there, readable only by administrators and the service - installs and starts the "Ledger Doctor" Windows service, opens its port in Windows Firewall (on the domain network, and on private networks too when the server isn't on a domain), and runs the first scan
On SQL Server Express, which has no SQL Agent, the service runs the nightly scan itself. Setup sets that up for you.
-
Open it
Choose Open in setup, or browse to
https://SERVERNAME:47474(http://if you left HTTPS off), and send that address to your team. If setup made the HTTPS certificate, each computer trusts it once, or IT sends it out with group policy: see HTTPS for Ledger Doctor. Edge and Chrome sign people in with their Windows account automatically when the server is in the Local intranet zone, which is the default for single-label names likeGPAPP01. If a browser asks for a password, addhttps://SERVERNAMEto the Local intranet zone by Group Policy.
Ledger Doctor can email a daily report, every day or only when there are warnings or errors. Choose who gets it on the Settings page. To send it, the server needs one of these, set up in setup's "Daily email report" section. To add or change it later, run setup again and choose Update.
Microsoft 365 (recommended if your email is Microsoft 365)
Microsoft is turning off password sign-in for SMTP in Microsoft 365, so Ledger Doctor sends through Microsoft Graph with an app registration instead. Your Microsoft 365 administrator does this once:
- In the Microsoft Entra admin center, go to App registrations and register a new app named Ledger Doctor.
- Under API permissions, add Microsoft Graph > Application permissions >
Mail.Send, then grant admin consent. - Under Certificates & secrets, add a client secret and copy its value. Note when it expires; when it does, make a new one and run setup again to enter it.
- Pick the mailbox it sends from (a shared mailbox like
ledgerdoctor@yourcompany.comworks), and limit the app to that mailbox with Exchange's application access policy or RBAC for Applications, so it can't send as anyone else. - In setup, enter the tenant ID, the app's client (application) ID, the secret value and the mailbox.
Another mail server (SMTP)
Enter the server, port, sender address and, if it needs one, a user and password. Port 587 with TLS works with most mail servers. An internal relay that accepts mail from the Ledger Doctor server needs no user or password. Port 465 isn't supported.
On the Settings page, Send a test email checks the setup right away and says in plain words what to fix if it doesn't work. Mail passwords and secrets are kept only in the settings file on the server, which only administrators and the service can read.
Updating
New checks arrive on their own, once a day. When a new version of Ledger Doctor itself is out, everyone sees a notice at the top of the dashboard with a link to the release notes.
Ledger Doctor downloads the new version to its server by itself and checks it: our signature, and that the file is exactly the one we signed. Then a Ledger Doctor admin can click Install update now in the notice. Ledger Doctor stops for a few minutes, installs the new version, upgrades its database and starts again, keeping your settings, history and checklists. If the new version doesn't start, the one you had is put back and the notice says why.
The install is done by a Windows scheduled task that setup creates ("Ledger Doctor update"). It runs as the server's system account, checks the signature again just before installing, and does nothing unless a Ledger Doctor admin asked.
To update by hand, open a command prompt on the server as an administrator and run the installed program: "C:\Program Files\Ledger Doctor\LedgerDoctor.Service.exe" update --from "C:\ProgramData\Ledger Doctor\Updates". It checks the signature and opens setup's Update. Or unzip a version you downloaded from the website, double-click its LedgerDoctor.Service.exe and choose Update. Never run a program from the Updates folder.
Removing it
Double-click LedgerDoctor.Service.exe and choose Uninstall. It removes the service, its update task, its firewall rule and its folder. Check the box to remove the LedgerDoctor database and its SQL login too. Removing Ledger Doctor never changes GP data.
For your DBA
Setup creates Ledger Doctor's own database and SQL login, and its procedures are installed encrypted. If your DBA would like to review the SQL scripts setup runs first, email support@myledgerdoctor.com and we'll send the scripts for your version. For a scripted install, setup also runs from an answers file: LedgerDoctor.Service.exe setup --answers answers.json. INSTALL.md in the download shows the format.
Good to know
- HTTPS uses the same port as HTTP, and the old
http://address sends people tohttps://. Use a certificate Ledger Doctor makes for the server, your own .pfx, or one from the server's certificate store, and change it any time in Settings. More about HTTPS. - If setup warns that the LedgerDoctor database isn't owned by sa, is marked TRUSTWORTHY or has cross-database ownership chaining on, it still finishes and Ledger Doctor works. To close it, have a SQL Server administrator run the lines the warning shows (for example
ALTER AUTHORIZATION ON DATABASE::[LedgerDoctor] TO [sa];orALTER DATABASE [LedgerDoctor] SET TRUSTWORTHY OFF;) in SQL Server Management Studio. They change no data. See Messages. - Stuck? Email support@myledgerdoctor.com with the step you're on and any error text.