免互動安裝Remote Tools for Visual Studio、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Microsoft.VisualStudio.RemoteTools -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.VisualStudio.RemoteTools -e --silentwinget uninstall --id Microsoft.VisualStudio.RemoteTools -e --silent依安裝檔
64位元 · EXE · 所有使用者
靜默安裝
VS_RemoteTools.exe /quietARM64 · EXE · 所有使用者
靜默安裝
VS_RemoteTools.exe /quiet32位元 · EXE · 所有使用者
靜默安裝
VS_RemoteTools.exe /quietPowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-remote-tools-for-visual-studio.ps1
$url = 'https://download.visualstudio.microsoft.com/download/pr/89c03bd4-060d-4060-a42c-64d2879f7c10/647ad3c3f587f065dcff90604d00241121c833c134cdc89e4647a5608478186d/VS_RemoteTools.exe'
$sha256 = '647AD3C3F587F065DCFF90604D00241121C833C134CDC89E4647A5608478186D'
$file = Join-Path $env:TEMP 'VS_RemoteTools.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet' -Wait install-remote-tools-for-visual-studio.ps1
$url = 'https://download.visualstudio.microsoft.com/download/pr/6ad63323-a427-4c58-8464-9f1f19f62359/f9c31acaf1e885379a654c1401c6ecb76e451a48d4225b3ad571b6ed78836795/VS_RemoteTools.exe'
$sha256 = 'F9C31ACAF1E885379A654C1401C6ECB76E451A48D4225B3AD571B6ED78836795'
$file = Join-Path $env:TEMP 'VS_RemoteTools.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet' -Wait install-remote-tools-for-visual-studio.ps1
$url = 'https://download.visualstudio.microsoft.com/download/pr/89c03bd4-060d-4060-a42c-64d2879f7c10/17791104f22426112be4f98cf0b1002f0704b9fab17f6d4a610fda5bd746219b/VS_RemoteTools.exe'
$sha256 = '17791104F22426112BE4F98CF0B1002F0704B9FAB17F6D4A610FDA5BD746219B'
$file = Join-Path $env:TEMP 'VS_RemoteTools.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet' -Wait