Cette page existe aussi en français. Lire en français
Install on Windows Server
Prepare the database, install Adekio as a Windows service and open the firewall.
For Windows Server 2019, 2022 and 2025. All commands run in Windows PowerShell as administrator. In the examples,
replace <password> with a password of your choice (letters, digits, - and _: it is part of an address).
1. Prepare the database
PostgreSQL 17 (recommended)
Install PostgreSQL 17 for Windows (installer), keeping port 5432 and
noting the password of postgres. Then create the Adekio account and database:
$psql = "C:\Program Files\PostgreSQL\17\bin\psql.exe"
& $psql -U postgres -c "CREATE ROLE adekio LOGIN PASSWORD '<password>';"
& $psql -U postgres -c "CREATE DATABASE adekio OWNER adekio;"
Database address: postgres://adekio:<password>@127.0.0.1:5432/adekio?sslmode=disable
SQL Server 2022
During setup, choose mixed authentication. SQL Server Express does not listen on TCP by default: in SQL Server
Configuration Manager > Protocols for SQLEXPRESS > TCP/IP, enable the protocol, clear TCP Dynamic Ports and set
TCP Port to 1433 under IPAll, then restart the SQL Server service.
sqlcmd -S localhost\SQLEXPRESS -E -Q "CREATE LOGIN adekio WITH PASSWORD = '<password>'; CREATE DATABASE adekio;"
sqlcmd -S localhost\SQLEXPRESS -E -d adekio -Q "CREATE USER adekio FOR LOGIN adekio; ALTER ROLE db_owner ADD MEMBER adekio;"
Database address: sqlserver://adekio:<password>@127.0.0.1:1433?database=adekio
Special characters
Avoid @ : / ? # in the database password, or encode them in the address (@ becomes %40, : becomes %3A,
/ becomes %2F).
2. Install Adekio
Download the adekio_<version>_windows_amd64.zip archive from the
latest release, then:
Expand-Archive .\adekio_<version>_windows_amd64.zip -DestinationPath C:\Install\adekio
cd C:\Install\adekio
Unblock-File -Path .\*
.\install.ps1 -DatabaseUrl 'postgres://adekio:<password>@127.0.0.1:5432/adekio?sslmode=disable'
Unblock-File is needed for downloaded files: without it, the execution policy refuses the script.
The script:
- copies
adekio.exetoC:\Program Files\Adekio; - creates the configuration
C:\ProgramData\Adekio\config.yamland the data folder (measurements,secret.key, logs inlogs\adekio.log), accessible to administrators and the service only; - creates the Adekio service (virtual account
NT SERVICE\Adekio, delayed automatic start, restart on failure); - opens TCP port 8080 in the firewall, for the Domain and Private network profiles only;
- waits for the server to answer, then shows the address and where the initial password is.
Useful options: -Port 8443, -NoFirewall, -DataDir D:\Adekio, -BinaryPath <path>.
3. First sign-in
Open http://<server>:8080. The temporary password of the admin account is in
C:\ProgramData\Adekio\initial-admin-password.txt: see First sign-in and settings.
Page not reachable from another workstation?
The machine is often on a "Public" network: Get-NetConnectionProfile shows it, then
Set-NetConnectionProfile -InterfaceAlias Ethernet -NetworkCategory Private, or a suitable firewall rule.
Next steps
- Switch to HTTPS: Enable HTTPS.
- Plan the backups: Back up.
Was this page helpful?
Thank you for your feedback. Tell us what is missing