Wingetlywingetly
← Back to PostgreSQL 16

Silent install command for PostgreSQL 16 16.14-2

The exact silent switches the PostgreSQL 16 installer accepts, plus a one-line command you can paste into a script, Intune Win32 app, or Configuration Manager package.

One-line silent install (x64, machine scope)
postgresql-16.14-2-windows-x64.exe --mode unattended --unattendedmodeui none

Run from the directory containing postgresql-16.14-2-windows-x64.exe. Download the installer from the Direct link below first. Run an elevated terminal (Run as Administrator) for machine-scope installs.

ArchitectureScopeTypeSilent switchesSource
x64machineEXEDeclared by publisher
  • Declared by publisher means the switches come straight from the winget manifest the publisher (or community maintainer) submitted to microsoft/winget-pkgs.
  • Default for {type} means the manifest doesn't specify silent switches, so the framework's standard switches are shown (e.g. /S for NSIS, /quiet /norestart for MSI).

Frequently asked questions

What is the silent install command for PostgreSQL 16?
PostgreSQL 16 uses EXE. After downloading the installer, run: postgresql-16.14-2-windows-x64.exe --mode unattended --unattendedmodeui none. The silent install switches are --mode unattended --unattendedmodeui none.
How do I deploy PostgreSQL 16 via Intune or Configuration Manager?
Use winget for the cleanest path: winget install --id PostgreSQL.PostgreSQL.16 --exact 16.14-2 --silent --accept-package-agreements --accept-source-agreements. If winget isn't viable in your environment, package the publisher's installer directly using the silent switches above.
Where do these silent switches come from?
The switches marked "Declared by publisher" come from the winget manifest the publisher (or community maintainer) submitted to microsoft/winget-pkgs. Switches marked "Default for EXE" come from the installer framework's documented defaults.

Prefer the winget route? See the full PostgreSQL 16 install page.