All silent-install switches →

SwitchHunt / catalog

PowerShell 7 - Silent Install Switch

The hand-curated silent install command for PowerShell 7 on Windows, plus its silent uninstall command - for unattended, quiet, fleet-wide deploys. Copy, paste, ship - smoke-test in a throwaway VM first.

Silent install command

msiexec /i "installer.msi" /qn ADD_PATH=1 REGISTER_MANIFEST=1 USE_MU=1 ENABLE_MU=1

Silent uninstall command

msiexec /x "installer.msi" /qn

Replace installer.msi with the actual installer filename (or its full path).

Notes & gotchas

Use the MSI, not winget's default: since 7.6 winget installs the per-user MSIX, which has no remoting endpoint and no $PSHOME config. Microsoft has said there is no MSI from 7.7 onward, so pin to the 7.6 LTS MSI for machine-wide deploys. Every 7.x installs into ...\PowerShell\7, so a newer MSI replaces the old one in place.

Install options

Add any of these to the install command. Values shown are the useful setting; "..." means you supply your own.

OptionWhat it does
ADD_PATH=1Put pwsh on the system PATH.
ENABLE_PSREMOTING=1Enable PowerShell remoting (WinRM endpoint) during install.
ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1Add "Open PowerShell 7 here" to folder right-click.
DISABLE_TELEMETRY=1Set POWERSHELL_TELEMETRY_OPTOUT machine-wide.
USE_MU=1Let Microsoft Update / WSUS deliver PowerShell updates.

Lab-tested

On 2026-10-12 we ran the install command above as SYSTEM (how deployment tools run it) on a Windows 11 VM against PowerShell 7 7.6.6, and confirmed the app showed up in Add/Remove Programs - not just that the installer exited 0. The uninstall command above then removed it. Vendors change installers between versions, so smoke-test a new one before you ship it fleet-wide.

Detection path

A file whose presence proves PowerShell 7 is installed - handy as an Intune / RMM detection rule:

C:\Program Files\PowerShell\7\pwsh.exe

FAQ

What is the silent install command for PowerShell 7?

Run: msiexec /i "installer.msi" /qn ADD_PATH=1 REGISTER_MANIFEST=1 USE_MU=1 ENABLE_MU=1

How do I silently uninstall PowerShell 7?

Run: msiexec /x "installer.msi" /qn

Any gotchas installing PowerShell 7 unattended?

Use the MSI, not winget's default: since 7.6 winget installs the per-user MSIX, which has no remoting endpoint and no $PSHOME config. Microsoft has said there is no MSI from 7.7 onward, so pin to the 7.6 LTS MSI for machine-wide deploys. Every 7.x installs into ...\PowerShell\7, so a newer MSI replaces the old one in place.

What install options does the PowerShell 7 installer take?

ADD_PATH=1: Put pwsh on the system PATH. ENABLE_PSREMOTING=1: Enable PowerShell remoting (WinRM endpoint) during install. ADD_EXPLORER_CONTEXT_MENU_OPENPOWERSHELL=1: Add "Open PowerShell 7 here" to folder right-click. DISABLE_TELEMETRY=1: Set POWERSHELL_TELEMETRY_OPTOUT machine-wide. USE_MU=1: Let Microsoft Update / WSUS deliver PowerShell updates.

Got a different installer, or one that isn't in this list? Drop it into SwitchHunt and it reads the silent switches right in your browser, nothing uploaded.