The exact silent switches the Microsoft ODBC Driver 11 for SQL Server installer accepts, plus a one-line command you can paste into a script, Intune Win32 app, or Configuration Manager package.
msiexec.exe /i msodbcsql.msi /quiet /norestart IACCEPTMSODBCSQLLICENSETERMS=YES
Run from the directory containing msodbcsql.msi. Download the installer from the Direct link below first. Run an elevated terminal (Run as Administrator) for machine-scope installs.
| Architecture | Scope | Type | Silent switches | Source |
|---|---|---|---|---|
| x64 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x64 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x64 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x64 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x64 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x64 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x64 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x64 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x64 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x64 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x64 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x86 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x86 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x86 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x86 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x86 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x86 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x86 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x86 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x86 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x86 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
| x86 | machine | MSI | Custom: IACCEPTMSODBCSQLLICENSETERMS=YES | Default for MSI |
/S for NSIS, /quiet /norestart for MSI).Prefer the winget route? See the full Microsoft ODBC Driver 11 for SQL Server install page.