熱門: 資料更新於2026年11月3日

軟體分類

網路軟體1,364
通訊社群322
影音軟體904
繪圖與影像544
辦公軟體1,127
開發工具3,147
AI工具535
安全與隱私392
系統工具3,146
遊戲526
教育與科學239
網路與IT283

Microsoft OLE DB Driver for SQL Server靜默安裝與解除安裝參數

The OLE DB Driver for SQL Server is a stand-alone data access application programming interface (API), used for OLE Database.

免互動安裝Microsoft OLE DB Driver for SQL Server、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。

相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式

使用winget

PowerShell
winget install --id Microsoft.SQLServer.OLEDBDriver -e --silent --accept-package-agreements --accept-source-agreements
winget upgrade --id Microsoft.SQLServer.OLEDBDriver -e --silent
winget uninstall --id Microsoft.SQLServer.OLEDBDriver -e --silent

依安裝檔

64位元 · MSI · 所有使用者 · de-DE

靜默安裝msiexec /i msoledbsql.msi /qn /norestart /qn IACCEPTMSOLEDBSQLLICENSETERMS=YES
寫入記錄檔msiexec /i msoledbsql.msi /qn /norestart /qn IACCEPTMSOLEDBSQLLICENSETERMS=YES /l*v "%TEMP%\microsoft-ole-db-driver-for-sql-server-install.log"
解除安裝msiexec /x {D18429DE-40A6-4F7E-9B18-F11A00BA9A90} /qn /norestart
MSI產品代碼
{D18429DE-40A6-4F7E-9B18-F11A00BA9A90}
解除安裝登錄機碼
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D18429DE-40A6-4F7E-9B18-F11A00BA9A90}
UpgradeCode
{B1F32E34-48E0-426C-8B0F-9DB732A4C975}

64位元 · MSI · 所有使用者 · en-US

靜默安裝msiexec /i msoledbsql.msi /qn /norestart /qn IACCEPTMSOLEDBSQLLICENSETERMS=YES
寫入記錄檔msiexec /i msoledbsql.msi /qn /norestart /qn IACCEPTMSOLEDBSQLLICENSETERMS=YES /l*v "%TEMP%\microsoft-ole-db-driver-for-sql-server-install.log"
解除安裝msiexec /x {B8F87A96-2998-43A5-93BC-379FF776784F} /qn /norestart
MSI產品代碼
{B8F87A96-2998-43A5-93BC-379FF776784F}
解除安裝登錄機碼
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B8F87A96-2998-43A5-93BC-379FF776784F}
UpgradeCode
{B1F32E34-48E0-426C-8B0F-9DB732A4C975}

64位元 · MSI · 所有使用者 · it-IT

靜默安裝msiexec /i msoledbsql.msi /qn /norestart /qn IACCEPTMSOLEDBSQLLICENSETERMS=YES
寫入記錄檔msiexec /i msoledbsql.msi /qn /norestart /qn IACCEPTMSOLEDBSQLLICENSETERMS=YES /l*v "%TEMP%\microsoft-ole-db-driver-for-sql-server-install.log"
解除安裝msiexec /x {031C8E7C-114A-4AF1-A3A2-B8680671D2AE} /qn /norestart
MSI產品代碼
{031C8E7C-114A-4AF1-A3A2-B8680671D2AE}
解除安裝登錄機碼
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{031C8E7C-114A-4AF1-A3A2-B8680671D2AE}
UpgradeCode
{B1F32E34-48E0-426C-8B0F-9DB732A4C975}

PowerShell:下載、驗證、安裝

下載官方檔案,驗證SHA256後靜默安裝。

install-microsoft-ole-db-driver-for-sql-server.ps1
$url = 'https://download.microsoft.com/download/6afc73cd-aad7-4bab-876a-ab0dcc8a9001/amd64/1031/msoledbsql.msi'
$sha256 = 'B300A2735E306ADB3E6606E4D210B22CB36400E9F431F8463E49CA089A70F464'
$file = Join-Path $env:TEMP 'msoledbsql.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart', '/qn IACCEPTMSOLEDBSQLLICENSETERMS=YES' -Wait

Microsoft Corporation的其他軟體

查看全部
  • PowerShell終端機與命令列 · Microsoft Corporation
  • PowerToys系統美化 · Microsoft Corporation
  • NuGet套件管理與軟體更新 · Microsoft Corporation
  • Microsoft Azure CLI終端機與命令列 · Microsoft Corporation
  • OpenSSH PreviewFTP與檔案傳輸 · Microsoft Corporation
  • Bicep CLI程式語言與SDK · Microsoft Corporation

分享