Installing Orthanc on Windows as a service

Installing Orthanc on Windows as a service is a practical route for teams that run Windows servers, but it needs deliberate choices on database back end, logs, configuration and access control before it goes near patient images.

On this page

When installing Orthanc on Windows as a service fits your server estate

The official Windows installer is the right path when your imaging team runs Windows servers, already manages them through Windows tooling, and wants Orthanc registered as a service that starts with the host. It gives you a packaged install instead of a container runtime or a hand-built Linux environment. If your organization standardizes on Docker or on Debian or Ubuntu packages, the installer adds a second server platform to patch and monitor, so weigh that before you choose it. The Orthanc core is licensed GPLv3 or later and there is no paid edition. Orthanc Team SRL sells deployment, configuration and development services, including pre-paid dedicated support hours valid for 12 months, quoted on request, so budget for those as a separate, optional line.

The installer bundles more than the server itself. Since installer release 20.12.0, it has included the Stone Web viewer, so a Windows install can serve a browser viewer without a second package. Confirm which plugins your chosen installer version bundles before you plan the build, because bundled plugins and database back ends differ from the Docker images. Check the plugin list against your viewer, authentication and storage requirements early, since adding a plugin later can change the configuration and the upgrade steps.

The built-in SQLite index is suitable for small trials and light use, but the Orthanc documentation recommends replacing it with an enterprise database engine once the archive holds several hundred thousand DICOM instances. For hospital-scale archives, plan the PostgreSQL plugin or another supported back end from the start, and confirm with your database team who will run that database, where it sits and how it is backed up. Migrating an SQLite index after production data has accumulated is far more work than choosing the back end before the first study arrives.

Which Windows install path matches your archive size and team

For one clinic or department with a modest archive, the simplest path is the official Windows installer with the built-in SQLite index. The index is a local file, so you do not provision a database server. The installer sets up the Orthanc service and the Stone Web viewer, which has been part of the Windows installers since release 20.12.0 of the installers.

  • What the installer covers: the Orthanc service, the Stone Web viewer and the default index setup. Confirm which bundled plugins are enabled after installation.
  • What you provision: a Windows host with encrypted local disk, a service account with access only to the Orthanc folders, and network rules for your DICOM and HTTP ports.
  • Backups: a scheduled backup of the storage folder and the index together, tested with a restore.
  • Logs: a new log file is written to C:\Program Files\Orthanc Server\Logs each time the service starts, and old logs are not removed automatically, so plan a retention job.
  • Growth limit: the Orthanc documentation says to replace the SQLite index once the archive holds several hundred thousand DICOM instances.

Before committing to this path, estimate your instance count over the planned life of the server and ask your partner to confirm where that growth crosses the threshold.

Configuration options on Windows and when each fits

This table compares the main configuration choices for Orthanc on a Windows server, from the index database to viewers, file storage and authorization. Read each row as a question: what the option solves, what it adds to the install, and which setups it suits. The main takeaway is that the default SQLite index and local files keep a first install simple, while larger archives, shared access and cloud storage add components you must install, back up and operate.

ChoiceOptionTrade-offWhen it fits
Index databaseDefault SQLite indexNeeds no separate server, but the Orthanc docs advise moving to an enterprise engine once the archive holds several hundred thousand instancesTest servers, small clinics and pilots with modest study volumes
Index databasePostgreSQL or MySQL/MariaDB pluginAdds a database server to install, back up and patch, and the plugin must match the Orthanc versionLarge archives, several Orthanc instances sharing one index, or hospital database standards
ViewerBundled Stone Web viewerIncluded in the Windows installers, so it needs no separate install, but it is one more component to keep currentTeams that want a viewer available immediately after installation
ViewerOHIF viewer pluginNeeds its own plugin installation and version matching with OrthancTeams already using OHIF or needing its specific workflows
InterfaceOrthanc Explorer 2Built-in web interface for browsing and administering the server, pairs with the authorization plugin for Keycloak-style sign-inAdministrators and staff who need to browse, search and manage studies in a browser
File storageLocal disk under the Orthanc storage folderSimplest to run, but capacity, backup and encryption are your responsibility on the Windows hostOn-premises archives where the server and disks sit inside the hospital network
File storageS3, Azure or Google Cloud object storage pluginMoves DICOM files to object storage, adding cloud accounts, credentials and network paths to manageSites with a cloud storage mandate or that need storage separated from the Windows server
Access controlBuilt-in users with authentication enabledSimple user list in the configuration, with limited support for central identity or fine-grained rulesSmall deployments with few users managed by the local team
Access controlAdvanced authorization plugin with an external serviceEach request is checked by a web service you build or run, which adds a dependency and its own uptime and security needsOrganizations that need central identity and per-request access decisions

Install and verify Orthanc as a Windows service

This sequence takes a Windows server from a checked baseline to a running Orthanc service with a known configuration location, readable logs and plugins that have been tested one at a time. Each step ends with a check, so a failure is caught while the cause is still easy to find.

  1. Confirm the Windows version and server role

    Your infrastructure or Windows administrator confirms the Windows Server version, patch level, domain membership and the server's place in the network before anything is installed. Record whether the server is a dedicated Orthanc host, which network segment it sits on, and which modalities, viewers and users will reach it. Confirm the supported Windows versions for the installer you plan to use on the official download page, since support can change between releases. This step is done when the server record names its role, network zone and the owner of the service account that will run Orthanc.

  2. Download the installer from the official source

    Download the Windows installer only from the official Orthanc download page, and choose the release you have agreed to run. Record the exact version number, then compare the file hash published with the download against a hash you calculate on the server with PowerShell's Get-FileHash command. Keep the installer and its hash in your change record so the same build can be reproduced later. This step is done when the hashes match and the version on the file matches your change request.

  3. Choose the install location and set up folders

    Run the installer with a clear decision about where Orthanc's program files, configuration and storage will live. The default program location is under C:\Program Files\Orthanc Server, and the log folder created there is where you will check first when troubleshooting. If DICOM storage will be on a separate volume, create that folder and grant the service account write access before the first start, and confirm that the volume is encrypted and backed up according to your policy. This step is done when the install path, storage path and permissions are written down and match your plan.

  4. Install the service and confirm it starts

    Complete the installer so that Orthanc is registered as a Windows service, then open the Services console or run Get-Service to confirm the service exists and shows as running. If the service does not start, Orthanc retries 5 times before it stops, so check the log folder rather than repeatedly restarting the service by hand. Confirm that the configuration file is in the location the installer reported, and note its full path in your records, because later changes depend on it. This step is done when the service shows as running and the configuration file path is confirmed.

  5. Read the newest log file

    Open the Logs folder under the install location and find the newest file, since Orthanc creates a new log file each time the service starts. Read it from the top for startup messages, errors about the configuration file, and any warnings about storage paths or ports. Old logs are not removed automatically, so set a rule for who archives or deletes them, because the folder will keep growing on a busy server. This step is done when the newest log shows a clean startup with no unexplained errors, and you have written down the log retention owner.

  6. Open the web interface from localhost only

    With remote access still off, open the Orthanc web interface from the server itself, using the local address and port shown in your configuration. Orthanc accepts HTTP connections only from localhost by default, so this confirms that the service responds without exposing it to the network. Do not enable RemoteAccessAllowed at this stage. Before any user from another machine signs in, the security documentation calls for authentication with registered users, and HTTPS through a reverse proxy for internet exposure. This step is done when the interface loads locally and remote requests from another host are refused.

  7. Enable and test plugins one at a time

    Enable the bundled plugins you need, such as the Stone Web viewer, which has been part of the Windows installers since installer release 20.12.0, and any database back end you have chosen. Change one plugin, restart the service, then read the newest log and confirm the plugin loaded without errors before enabling the next. Test each plugin with a sample study so you can see the behavior, not only the startup message. This step is done when every enabled plugin loads cleanly in the log and the test study behaves as expected.

  8. Ask Orthanc Team for deployment help if needed

    If your team lacks Windows service experience, or the configuration needs database back ends, network or viewer work, Orthanc Team sells deployment and configuration services and can quote them on request. Ask for a written scope that lists the Windows version, plugins, storage location, access model and the tests they will run, and confirm which of those items your own staff must provide. Keep the signed-off checklist from this sequence with the quote so the result can be checked later. This step is done when you hold a written quote or a documented decision to keep the work in-house.

How the Windows service writes logs and recovers from failures

Each time the Orthanc Windows service starts, it writes a new log file to C:\Program Files\Orthanc Server\Logs. Every restart therefore produces a separate file, so a server that restarts often will accumulate logs quickly. If the service fails to start, Orthanc retries 5 times before it stops. That is the full recovery behavior the operator can rely on: the service does not reconfigure itself, repair its database connection or alert anyone when it gives up. Confirm the current behavior against the version you install, since the log and service details come from the Orthanc Book and your installer version may differ.

Old logs are never removed automatically, so disk use grows until someone intervenes. Before go-live, decide how long logs must be kept, who owns that decision, and how old files will be archived or deleted, for example with a scheduled task or a retention script on the server. Add disk space monitoring for the drive that holds the Logs folder, and set an alert threshold that leaves room for the database and DICOM storage on the same volume. Also check how your organization's audit and security policies treat application logs that may contain patient identifiers, because that affects both retention period and access rights.

If you plan to forward logs to a central collector, read the Orthanc log collection guidance in the Orthanc Book before you choose or configure a log shipper. The guidance explains what the server writes and how to capture it, which avoids building a shipper around file names or formats that do not match your version. Test the pipeline by restarting the service on purpose and checking that the new file appears in the central system, and test a failed start to confirm the retry count you observe matches the documented behavior. Record these results in your runbook so the on-call team knows where to look first.

How the Windows service, plugins, storage and clients connect

The diagram starts with clinical users and modalities on the hospital network, which reach the Orthanc service on the Windows host over DICOM and HTTP. By default Orthanc only accepts HTTP from localhost, so remote viewers must come through a reverse proxy or VPN. The index sits in SQLite or a database plugin, and DICOM files sit on local disk or object storage. Check that the trust boundary is drawn where your firewall and remote access actually sit.

Windows host data paths, with the trust boundary around the hospital network.

Securing a Windows Orthanc before clinicians use it

A Windows Orthanc starts with its REST API limited to localhost, but the first clinical use usually means opening access to viewers, modalities and other sites. The controls below connect remote access, authentication, script and export routes, transport encryption and file permissions, and each one should be checked before a clinician logs in.

Keep remote access off by default

Orthanc only accepts HTTP connections from localhost unless RemoteAccessAllowed is enabled. Leave it disabled on the first install and turn it on only for a named viewer or workstation that needs it. Before enabling it, confirm which hosts must reach the REST API and write those rules into the Windows firewall rather than opening the port to the whole network. Record who approved the change.

Security FAQ

Enable authentication with registered users

When remote access is on, set AuthenticationEnabled to true and define each account in RegisteredUsers. Use individual accounts instead of a shared login so audit trails show who opened which study. Check that anonymous access is not reachable through any viewer plugin before go-live, and test a denied login as well as a successful one.

Use HTTPS and a reverse proxy for Internet exposure

The project recommends HTTPS and a reverse proxy whenever the server is reachable from the Internet. Terminate TLS at the proxy, restrict which paths are published, and keep the Orthanc port itself closed to outside traffic. Confirm the certificate chain with the clinicians' browsers and document who renews it, since an expired certificate will block viewing during clinic hours.

Keep script and export routes disabled

The security FAQ warns that the /tools/execute-script route can let a malicious user run any system command, and that the export route can overwrite files. Both should stay disabled on a clinical Windows server. If a team needs scripted exports, plan them as scheduled jobs under a controlled account instead of exposing these routes to users or viewers.

Security FAQ

Encrypt inter-site DICOM exchange

Orthanc supports DICOM TLS for exchanges with other sites starting with version 1.9.0. Plan which peers and modalities must use TLS, obtain the certificates each partner expects, and test a transfer in both directions before relying on it. Confirm with the partner which certificate authority and port they require, because a mismatch usually shows up as silent failed transfers.

Restrict the service account and storage folders

The Windows service should run under a dedicated account that holds only the rights it needs, not an administrator or a personal login. Grant that account modify rights on the storage and database folders and read-only access to the configuration file, and remove inherited access for general users. Check the log folder permissions too, because logs can contain patient identifiers. Confirm the exact rights with your Windows administrators.

Questions teams ask before installing Orthanc on Windows

What does it cost to install Orthanc on Windows?

Orthanc itself has no license fee, because there is no paid edition of the server. The costs come from the people doing the work. Your own staff time for Windows administration, storage, network changes and testing is one cost. If you hire a partner, the fee covers the services you agree on, such as deployment, configuration or development, and Orthanc Team SRL quotes these on request. Orthanc Team also sells pre-paid dedicated support hours that are valid for 12 months. Ask any quote to list each item separately, whether it is one-time setup or recurring support, and what each hour or deliverable includes.

How long does a Windows installation of Orthanc take?

The installer itself is quick, but a production setup takes longer because of the decisions around it. The main drivers are the number of modalities and viewers that must connect, how many firewall and network changes your security team must approve, whether you need an enterprise database back end, how much existing data must be imported, and how much testing your clinical users require. A small internal test server can be running in a short session, while a hospital service needs planning, sign-off and verification first. Ask any provider for a written scope with a timeline, and agree which items are fixed before work starts.

What does our team need to provide before the installation?

Plan to supply a few things before anyone runs the installer. You need an account with local administrator rights on the Windows server, or a named administrator who can install the service. Storage must be sized and set aside for DICOM files and logs, with a path that the service account can write to. Network rules must allow the DICOM and HTTP ports your modalities and viewers use, which your network team should approve. The data owner, usually a clinical or radiology lead, should sign off on what images will be stored and who can access them. Confirm these with your own security and clinical governance processes rather than assuming defaults.

Can our own IT team install Orthanc on Windows without a partner?

Yes, a team with Windows server experience can install the service from the official installer, and the project documentation covers the basic steps. The harder part is the surrounding work: keeping the service behavior predictable, reviewing the configuration file, controlling remote access, and deciding how logs and backups are handled. Remote access is off by default, and if you enable it, the documentation says authentication should be turned on with registered users, and HTTPS and a reverse proxy are recommended for any Internet exposure. A partner is most useful when you lack these skills in-house, need a hardened setup reviewed, or want the work documented for compliance evidence.

What should we check in the Windows service logs?

Each time the service starts, Orthanc writes a new log file in the Logs folder under the Orthanc Server install directory, which is typically under C:\Program Files\Orthanc Server\Logs. If the service fails to start, it retries 5 times before stopping. Old logs are not removed automatically, so the folder will grow unless you set up a retention routine. After installation, check that the newest log shows a clean start, that the expected plugins loaded, and that the service did not stop after retries. Make a schedule to archive or delete old logs, and confirm the retention period with your data governance owner.

Which Windows-specific limits should we plan for?

Windows installs use the bundled installer layout, so paths, service ownership and file permissions must be planned for that layout. Log files accumulate across restarts, which affects disk capacity. The installer also bundles plugins such as the Stone Web viewer, which has been part of the Windows installers since release 20.12.0 of the installers, so you should decide whether you need that viewer or whether it should be disabled. Test any reverse proxy upload limits, because large DICOM files are a common failure point. Confirm details such as service account rights and antivirus exclusions with your own Windows administrators and in a test environment before production.

When should we move from SQLite to PostgreSQL?

Move to an enterprise database once your archive gets large. The Orthanc scalability documentation says the built-in SQLite index should be replaced once Orthanc stores several hundred thousand DICOM instances, and it recommends the PostgreSQL plugin for large datasets. Do not wait for the threshold if you expect multiple Orthanc instances, since since Orthanc 1.9.2 with PostgreSQL or MySQL plugins 4.0, several instances can share one database for scaling and high availability. Plan the switch before you accumulate data, because moving an existing index later is more work. Ask your provider to show the migration path and the test you will run on a copy.

Who owns the Windows host, the data and the upgrades

The client owns the Windows server, the patient data and the access decisions. The host, its patching cycle, the local administrator accounts, the disk that holds the DICOM files and the database, and the backups of both all sit in the client's domain, whether the work is done by the client's team or a partner. Who may log in to the server, who may retrieve studies through the REST API or the viewers, and which modalities may send images are approval decisions that belong to the hospital or organization, not to the software. Before installation, confirm who signs off on each of these and where the backup copies of the index and the files will be stored and restored from.

Orthanc itself is free software. The core is licensed under GPLv3 or later, while the scalability and cloud plugins, such as the PostgreSQL plugin and the web viewer plugins, are licensed under AGPLv3 or later. The license terms matter for a Windows installation because the installer bundles several components at once, so the team should record which components are deployed, under which license, and whether any internal modification would need to be shared. Confirm these terms with the organization's legal or procurement team, since the license text governs and this page does not give legal advice.

Upgrades are the point where ownership is most often unclear. A new core release such as 1.13.0 changes internals, and bundled plugins must match the core version, so an upgrade is a planned change, not a file copy. Schedule a test window on a copy of the production index and a representative set of files, confirm that every plugin version matches the core, verify the service starts and that retrieves and stores still work, and keep the previous installer and a tested rollback path. Agree in advance who approves the change and who monitors the first days afterward.

How DeployOpen scopes and delivers a Windows Orthanc installation

DeployOpen plans, installs, configures and documents Orthanc on Windows servers inside infrastructure you control, with the service, logs, plugins and configuration agreed in writing before work starts. The same written scope covers the handover and the support options that follow.

How we scope

  • Confirm the Windows Server version, host sizing, and whether the service runs on a domain-joined or isolated machine.
  • List the DICOM and HTTP ports, modalities, viewers and reverse proxies that must reach the server.
  • Agree in writing which bundled plugins, database back end and viewers are in and which are out.

How we build

  • Install the official Orthanc package, configure the service account and confirm the service starts and restarts as expected.
  • Set the configuration file location, disable remote access by default and test authentication before exposing any port.
  • Verify the Stone Web viewer, log rotation and the retry behavior on a staging host before production cutover.

How we hand over

  • Deliver a written runbook covering service control, log locations in the Logs folder and how to read each start attempt.
  • Document the configuration keys changed, the plugin versions installed and the steps to repeat the install.
  • Walk your administrators through restores, upgrades and a test transfer, and record the results in the handover pack.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer once the initial installation is accepted.
  • Plan Orthanc version upgrades with you, including checks of plugin versions and the configuration after each release.
  • Agree the support hours, response expectations and escalation path in the written scope before the retainer starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.