Remote Desktop Agent Boot Loaderを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Microsoft.WindowsVirtualDesktopBootloader -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.WindowsVirtualDesktopBootloader -e --silentwinget uninstall --id Microsoft.WindowsVirtualDesktopBootloader -e --silentインストーラー別
64ビット · MSI · すべてのユーザー · en-US
サイレントインストール
msiexec /i setup.exe /qn /norestart /qn /norestartログを出力
msiexec /i setup.exe /qn /norestart /qn /norestart /l*v "%TEMP%\remote-desktop-agent-boot-loader-install.log"アンインストール
msiexec /x {B7EAA4DF-2870-4386-910D-6465715A00BE} /qn /norestart- MSIプロダクトコード
- {B7EAA4DF-2870-4386-910D-6465715A00BE}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B7EAA4DF-2870-4386-910D-6465715A00BE}
- UpgradeCode
- {B93A2D46-1728-4679-AD6E-EDD9EEF14E39}
- インストール先フォルダー
- %ProgramFiles%\Microsoft RDInfra\RDAgentBootLoader_1.0.11388.1600
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-remote-desktop-agent-boot-loader.ps1
$url = 'https://go.microsoft.com/fwlink/?linkid=2311028'
$sha256 = '2A29A36016553AA9F4C46A29014AACED76C57AA5055964C3D877BA01A88B30AA'
$file = Join-Path $env:TEMP 'setup.exe'
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 /norestart' -Wait