All silent-install switches →

SwitchHunt / catalog

Microsoft ODBC Driver 18 for SQL Server - Silent Install Switch

The hand-curated silent install command for Microsoft ODBC Driver 18 for SQL Server on Windows, plus its silent uninstall command - for unattended, quiet, fleet-wide deploys. Copy, paste, ship - smoke-test in a throwaway VM first.

Silent install command

msiexec /i "installer.msi" /qn /norestart IACCEPTMSODBCSQLLICENSETERMS=YES

Silent uninstall command

msiexec /x "installer.msi" /qn /norestart

Replace installer.msi with the actual installer filename (or its full path).

Notes & gotchas

IACCEPTMSODBCSQLLICENSETERMS=YES is required for a silent install. It also needs the Visual C++ 2015-2022 x64 runtime; the lab VM already had one, so deploy the runtime first on a clean image. Driver 18 encrypts connections by default, unlike 17, so test connection strings before replacing 17.

Install options

Add any of these to the install command. Values shown are the useful setting; "..." means you supply your own.

OptionWhat it does
IACCEPTMSODBCSQLLICENSETERMS=YESAccepts the licence. A silent install will not proceed without it.

Lab-tested

On 2026-10-18 we ran the install command above as SYSTEM (how deployment tools run it) on a Windows 11 VM against Microsoft ODBC Driver 18 for SQL Server 18.7.1.1, and confirmed the app showed up in Add/Remove Programs - not just that the installer exited 0. The uninstall command above then removed it. Vendors change installers between versions, so smoke-test a new one before you ship it fleet-wide.

FAQ

What is the silent install command for Microsoft ODBC Driver 18 for SQL Server?

Run: msiexec /i "installer.msi" /qn /norestart IACCEPTMSODBCSQLLICENSETERMS=YES

How do I silently uninstall Microsoft ODBC Driver 18 for SQL Server?

Run: msiexec /x "installer.msi" /qn /norestart

Any gotchas installing Microsoft ODBC Driver 18 for SQL Server unattended?

IACCEPTMSODBCSQLLICENSETERMS=YES is required for a silent install. It also needs the Visual C++ 2015-2022 x64 runtime; the lab VM already had one, so deploy the runtime first on a clean image. Driver 18 encrypts connections by default, unlike 17, so test connection strings before replacing 17.

What install options does the Microsoft ODBC Driver 18 for SQL Server installer take?

IACCEPTMSODBCSQLLICENSETERMS=YES: Accepts the licence. A silent install will not proceed without it.

Got a different installer, or one that isn't in this list? Drop it into SwitchHunt and it reads the silent switches right in your browser, nothing uploaded.