Remote Desktopを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Microsoft.RemoteDesktopClient -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.RemoteDesktopClient -e --silentwinget uninstall --id Microsoft.RemoteDesktopClient -e --silentインストーラー別
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i RemoteDesktop_1.2.7430.0_x64.msi /qn /norestartログを出力
msiexec /i RemoteDesktop_1.2.7430.0_x64.msi /qn /norestart /l*v "%TEMP%\remote-desktop-install.log"アンインストール
msiexec /x {C3E59FA5-6CD4-4CF1-AE1A-AF771EF12C14} /qn /norestart- MSIプロダクトコード
- {C3E59FA5-6CD4-4CF1-AE1A-AF771EF12C14}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C3E59FA5-6CD4-4CF1-AE1A-AF771EF12C14}
- UpgradeCode
- {F35D4E51-0F33-426C-B8A8-3ECF4ADBFC5F}
ARM64 · MSI · すべてのユーザー
サイレントインストール
msiexec /i RemoteDesktop_1.2.7430.0_ARM64.msi /qn /norestartログを出力
msiexec /i RemoteDesktop_1.2.7430.0_ARM64.msi /qn /norestart /l*v "%TEMP%\remote-desktop-install.log"アンインストール
msiexec /x {86BFCCF9-69C5-492B-B8D1-E03969141A97} /qn /norestart- MSIプロダクトコード
- {86BFCCF9-69C5-492B-B8D1-E03969141A97}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{86BFCCF9-69C5-492B-B8D1-E03969141A97}
- UpgradeCode
- {F35D4E51-0F33-426C-B8A8-3ECF4ADBFC5F}
32ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i RemoteDesktop_1.2.7430.0_x86.msi /qn /norestartログを出力
msiexec /i RemoteDesktop_1.2.7430.0_x86.msi /qn /norestart /l*v "%TEMP%\remote-desktop-install.log"アンインストール
msiexec /x {10DAF42F-9E15-443A-91EE-4D0E3C91D28F} /qn /norestart- MSIプロダクトコード
- {10DAF42F-9E15-443A-91EE-4D0E3C91D28F}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{10DAF42F-9E15-443A-91EE-4D0E3C91D28F}
- UpgradeCode
- {F35D4E51-0F33-426C-B8A8-3ECF4ADBFC5F}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-remote-desktop.ps1
$url = 'https://res.cdn.office.net/remote-desktop-windows-client/229f15ef-f921-4ff3-95b8-7a6cd809a2df/RemoteDesktop_1.2.7430.0_x64.msi'
$sha256 = '6F48AF9B88611777F9E3E3CF4D411492F572699ADFFA78B06918FF5710F9519B'
$file = Join-Path $env:TEMP 'RemoteDesktop_1.2.7430.0_x64.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-remote-desktop.ps1
$url = 'https://res.cdn.office.net/remote-desktop-windows-client/1feafc4e-29f7-497e-bb27-3b77343d612c/RemoteDesktop_1.2.7430.0_ARM64.msi'
$sha256 = 'E292B3BC85C5FF2573FEA05CC24A0B74A594F23504E9A68FFF78ECAF59C3588C'
$file = Join-Path $env:TEMP 'RemoteDesktop_1.2.7430.0_ARM64.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-remote-desktop.ps1
$url = 'https://res.cdn.office.net/remote-desktop-windows-client/22ef1300-124c-4080-b99f-3fefdf2e2737/RemoteDesktop_1.2.7430.0_x86.msi'
$sha256 = '9DE825B3F0FFFE0671B00A06DC13526573AD588607921C72B1C84FA314807F9D'
$file = Join-Path $env:TEMP 'RemoteDesktop_1.2.7430.0_x86.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