Commands for installing Windows App 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.WindowsApp -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.WindowsApp -e --silentwinget uninstall --id Microsoft.WindowsApp -e --silentBy installer
64-bit · MSIX
Silent install
Add-AppxPackage -Path WindowsApp_x64_Release_2.0.1747.0.msixUninstall
Get-AppxPackage -Name MicrosoftCorporationII.Windows365 | Remove-AppxPackageARM64 · MSIX
Silent install
Add-AppxPackage -Path WindowsApp_arm64_Release_2.0.1747.0.msixUninstall
Get-AppxPackage -Name MicrosoftCorporationII.Windows365 | Remove-AppxPackage32-bit · MSIX
Silent install
Add-AppxPackage -Path WindowsApp_x86_Release_2.0.1747.0.msixUninstall
Get-AppxPackage -Name MicrosoftCorporationII.Windows365 | Remove-AppxPackagePowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-windows-app.ps1
$url = 'https://res.cdn.office.net/remote-desktop-windows-client/35f4042e-ab09-43f1-a89f-c9bff9a62eba/WindowsApp_x64_Release_2.0.1747.0.msix'
$sha256 = '65D83076262F00F8E5D5A945689A51657CD6459DE6021B7BEAD81DAFD91409E7'
$file = Join-Path $env:TEMP 'WindowsApp_x64_Release_2.0.1747.0.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-windows-app.ps1
$url = 'https://res.cdn.office.net/remote-desktop-windows-client/3abe82e5-9714-492d-b068-88804832180b/WindowsApp_arm64_Release_2.0.1747.0.msix'
$sha256 = 'D141190B2665137A5C58517C9294DC29E306BC9D286CF1E233C08A05EBBE60FC'
$file = Join-Path $env:TEMP 'WindowsApp_arm64_Release_2.0.1747.0.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-windows-app.ps1
$url = 'https://res.cdn.office.net/remote-desktop-windows-client/0f2c9591-4687-4d37-9b0e-b72ffc2406c6/WindowsApp_x86_Release_2.0.1747.0.msix'
$sha256 = '39AB83F3CA4DE64241050A3E560AD1F66B07A631F5E96F44C337DA89B10276A8'
$file = Join-Path $env:TEMP 'WindowsApp_x86_Release_2.0.1747.0.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file