Commands for installing Microsoft Data Migration Assistant without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id Microsoft.DataMigrationAssistant -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.DataMigrationAssistant -e --silentwinget uninstall --id Microsoft.DataMigrationAssistant -e --silentBy installer
64-bit · MSI · en-US
Silent install
msiexec /i DataMigrationAssistant.msi /qn /norestartWrite a log
msiexec /i DataMigrationAssistant.msi /qn /norestart /l*v "%TEMP%\microsoft-data-migration-assistant-install.log"Uninstall
msiexec /x {6AB2C3EE-9B0E-4F8B-A0E2-712E915A86BD} /qn /norestart- MSI product code
- {6AB2C3EE-9B0E-4F8B-A0E2-712E915A86BD}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6AB2C3EE-9B0E-4F8B-A0E2-712E915A86BD}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-microsoft-data-migration-assistant.ps1
$url = 'https://download.microsoft.com/download/c/6/3/c63d8695-cef2-43c3-af0a-4989507e429b/DataMigrationAssistant.msi'
$sha256 = '2BD9D47770608EF6D47BFE6B698AD550506A6BCC36F71DCA8D1936BD82B42FC1'
$file = Join-Path $env:TEMP 'DataMigrationAssistant.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