免互動安裝IntuneDebugTools、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id MSEndpointMgr.IntuneDebugToolkit -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id MSEndpointMgr.IntuneDebugToolkit -e --silentwinget uninstall --id MSEndpointMgr.IntuneDebugToolkit -e --silent依安裝檔
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i IntuneDebugToolkit-3.0.0.msi /qn /norestart寫入記錄檔
msiexec /i IntuneDebugToolkit-3.0.0.msi /qn /norestart /l*v "%TEMP%\intunedebugtools-install.log"解除安裝
msiexec /x {F42F3680-5BD0-40AB-8DD7-ED7C37AB5487} /qn /norestart- MSI產品代碼
- {F42F3680-5BD0-40AB-8DD7-ED7C37AB5487}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F42F3680-5BD0-40AB-8DD7-ED7C37AB5487}
- UpgradeCode
- {58DD63BA-EEEF-4AE5-AF64-D0772D88203E}
- 安裝資料夾
- CommonAppDataFolder\MSEndpointMgr_IntuneDebugTools
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-intunedebugtools.ps1
$url = 'https://raw.githubusercontent.com/MSEndpointMgr/IntuneDebugToolkit/e1cdc69c3d4aa63f3f023352e7cbbb517d0657f3/IntuneDebugToolkit-3.0.0.msi'
$sha256 = '08B9078D0F097A71C22615BFBA4493A8E568ECEB71B97560F5E2314BA0355646'
$file = Join-Path $env:TEMP 'IntuneDebugToolkit-3.0.0.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