免互動安裝Microsoft Copilot、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Microsoft.Copilot -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.Copilot -e --silentwinget uninstall --id Microsoft.Copilot -e --silent依安裝檔
64位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i CopilotStableEnterpriseX64.msi /qn /norestart寫入記錄檔
msiexec /i CopilotStableEnterpriseX64.msi /qn /norestart /l*v "%TEMP%\microsoft-copilot-install.log"ARM64 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i CopilotStableEnterpriseARM64.msi /qn /norestart寫入記錄檔
msiexec /i CopilotStableEnterpriseARM64.msi /qn /norestart /l*v "%TEMP%\microsoft-copilot-install.log"32位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i CopilotStableEnterpriseX86.msi /qn /norestart寫入記錄檔
msiexec /i CopilotStableEnterpriseX86.msi /qn /norestart /l*v "%TEMP%\microsoft-copilot-install.log"PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-microsoft-copilot.ps1
$url = 'https://download.microsoft.com/download/efff0c3e-6a6d-47f9-b78e-b96ef24cd119/CopilotStableEnterpriseX64.msi'
$sha256 = '32FD96C2917356BF7C31525BCAF648E133345021C819CF30BF217F76087B5F88'
$file = Join-Path $env:TEMP 'CopilotStableEnterpriseX64.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' -Wait install-microsoft-copilot.ps1
$url = 'https://download.microsoft.com/download/efff0c3e-6a6d-47f9-b78e-b96ef24cd119/CopilotStableEnterpriseARM64.msi'
$sha256 = 'E9C7C070CBD32F4752EC46F8C38C7001FF43369A7AD7C8C5AA16FCF5C47C3FC4'
$file = Join-Path $env:TEMP 'CopilotStableEnterpriseARM64.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' -Wait install-microsoft-copilot.ps1
$url = 'https://download.microsoft.com/download/efff0c3e-6a6d-47f9-b78e-b96ef24cd119/CopilotStableEnterpriseX86.msi'
$sha256 = 'E77DBB7576EB6FA785744627F2FFB193C8A0814DCCD86A93955826D20562072C'
$file = Join-Path $env:TEMP 'CopilotStableEnterpriseX86.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' -Wait