Popular: Data updated October 27, 2026

Categories

Internet1,356
Communication321
Audio & video898
Graphics & design539
Office & productivity1,124
Developer tools3,134
AI tools529
Security & privacy385
System tools3,114
Games523
Education & science239
Network & IT284

PowerShell silent install & uninstall

PowerShell is a cross-platform task automation solution made up of a command-line shell, a scripting language, and a configuration management framework. PowerShell runs on Windows, Linux, and macOS.

Microsoft Corporation Terminals & CLI tools #1 Terminals & CLI tools

Commands for installing PowerShell 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.PowerShell -e --silent --accept-package-agreements --accept-source-agreements
winget upgrade --id Microsoft.PowerShell -e --silent
winget uninstall --id Microsoft.PowerShell -e --silent

By installer

64-bit · MSIX

Silent installAdd-AppxPackage -Path PowerShell-7.6.9.msixbundle
UninstallGet-AppxPackage -Name Microsoft.PowerShell | Remove-AppxPackage

64-bit · MSI · All users

Silent installmsiexec /i PowerShell-7.6.9-win-x64.msi /qn /norestart
Write a logmsiexec /i PowerShell-7.6.9-win-x64.msi /qn /norestart /l*v "%TEMP%\powershell-install.log"
Uninstallmsiexec /x {5417B253-1A6D-4638-BC94-743A6EC2E6F4} /qn /norestart
MSI product code
{5417B253-1A6D-4638-BC94-743A6EC2E6F4}
Uninstall registry key
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5417B253-1A6D-4638-BC94-743A6EC2E6F4}

ARM64 · MSIX

Silent installAdd-AppxPackage -Path PowerShell-7.6.9.msixbundle
UninstallGet-AppxPackage -Name Microsoft.PowerShell | Remove-AppxPackage

ARM64 · MSI · All users

Silent installmsiexec /i PowerShell-7.6.9-win-arm64.msi /qn /norestart
Write a logmsiexec /i PowerShell-7.6.9-win-arm64.msi /qn /norestart /l*v "%TEMP%\powershell-install.log"
Uninstallmsiexec /x {A55580A2-6A8D-45DB-A673-0601CBA518C8} /qn /norestart
MSI product code
{A55580A2-6A8D-45DB-A673-0601CBA518C8}
Uninstall registry key
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A55580A2-6A8D-45DB-A673-0601CBA518C8}

32-bit · MSIX

Silent installAdd-AppxPackage -Path PowerShell-7.6.9.msixbundle
UninstallGet-AppxPackage -Name Microsoft.PowerShell | Remove-AppxPackage

32-bit · MSI · All users

Silent installmsiexec /i PowerShell-7.6.9-win-x86.msi /qn /norestart
Write a logmsiexec /i PowerShell-7.6.9-win-x86.msi /qn /norestart /l*v "%TEMP%\powershell-install.log"
Uninstallmsiexec /x {F2DBB6E6-6A92-4712-A77E-350ADA889C0A} /qn /norestart
MSI product code
{F2DBB6E6-6A92-4712-A77E-350ADA889C0A}
Uninstall registry key
HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{F2DBB6E6-6A92-4712-A77E-350ADA889C0A}

PowerShell: download, verify, install

Downloads the official file, checks its SHA256 and installs it silently.

install-powershell.ps1
$url = 'https://github.com/PowerShell/PowerShell/releases/download/v7.6.9/PowerShell-7.6.9.msixbundle'
$sha256 = 'DA75C8AA23EDDA52E888FB586A46B923AB37A7C243719C2E8914B00130C5917A'
$file = Join-Path $env:TEMP 'PowerShell-7.6.9.msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file

Most popular in Terminals & CLI tools

See all
  1. PowerShellPowerShell is a cross-platform task automation solution made up of a command-line shell, a scripting language, and a configuration management framework. PowerShell runs on Windows, Linux, and macOS.
  2. QPDFQPDF is a command-line tool and C++ library that performs content-preserving transformations on PDF files.
  3. Oh My PoshPrompt theme engine for any shell
  4. Microsoft Azure CLIThe Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources. The Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation.
  5. yqyq is a portable command-line YAML, JSON, XML, CSV and properties processor.
  6. AlacrittyAlacritty is a free and open-source GPU accelerated terminal emulator focused on performance and simplicity.
  7. fzfA general-purpose command-line fuzzy finder
  8. PuTTYA free implementation of SSH and Telnet for Windows and Unix platforms, along with an xterm terminal emulator.
  9. cURLCommand line tool and library for transferring data with URLs
  10. TabbyA terminal for a more modern age.

More from Microsoft Corporation

See all
  • PowerToysMicrosoft PowerToys is a set of utilities for power users to tune and streamline their Windows experience for greater productivity.
  • NuGetThe package manager for .NET
  • Microsoft Azure CLIThe Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources. The Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation.
  • OpenSSH PreviewMicrosoft.OpenSSH.Preview
  • Bicep CLIA declarative language for describing and deploying Azure resources
  • Microsoft Azure Storage ExplorerFree tool to easily manage your Azure cloud storage resources anywhere, from Windows, macOS, or Linux.

Tags

Share