Windows Migration Assistantを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Apple.WindowsMigrationAssistant -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Apple.WindowsMigrationAssistant -e --silentwinget uninstall --id Apple.WindowsMigrationAssistant -e --silentインストーラー別
32ビット · EXE
サイレントインストール
WindowsMigrationAssistantSetup.exe /quietPowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-windows-migration-assistant.ps1
$url = 'https://updates.cdn-apple.com/2024/windows/052-83417-20240511-9053F1F5-070A-4E7D-83AE-126BC7071AA6/WindowsMigrationAssistantSetup.exe'
$sha256 = '45D0D7461D81A83B87825D3ACE29451E4E6B88941254179EF61F0B482B499423'
$file = Join-Path $env:TEMP 'WindowsMigrationAssistantSetup.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