PowerShell Preview silent install and 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.
- Vendor
- Microsoft Corporation
- Category
- IT Admin
- Installer
- MSIX package
- Architecture
- x86, x64, arm64
- Checked version
- 7.7.5.0
- winget ID
Microsoft.PowerShell.Preview- License
- MIT
- Download
- Official download
Silent install
Add-AppxProvisionedPackage -Online -PackagePath ".\PowerShellPreview-7.7.0-preview.5.msixbundle" -SkipLicense - Download the installer from the direct download link.
- Open an elevated PowerShell: right-click PowerShell and select Run as administrator.
- Change to the folder with the installer, for example
cd C:\Temp. - Run the command above. Adjust the file name if you downloaded a different version.
Or install with winget
winget install --id Microsoft.PowerShell.Preview --exact --silent --scope machine --accept-package-agreements --accept-source-agreements Silent uninstall
winget uninstall --id Microsoft.PowerShell.Preview --exact --silent --accept-source-agreements Run the command from an elevated PowerShell.
About the MSIX package installer
MSIX apps are installed with PowerShell. Add-AppxProvisionedPackage provisions the app for every user who signs in; Add-AppxPackage installs it for the current user only.
| Switch | What it does |
|---|---|
-Online | Target the running Windows installation. |
-SkipLicense | Provision without a license file (for apps that do not need one). |
Get-AppxPackage -AllUsers *Name* | Check whether the app is installed. |
Deploy PowerShell Preview with Microsoft Intune
Upload the MSIX file as a Line-of-business app in Intune. Intune installs and removes it without any command lines.