How to Reinstall PowerShell in Windows Like any app, PowerShell can sometimes freeze or get corrupted. When that happens, reinstalling it can help fix the problem or allow you to upgrade to a newer version. In this video, we’ll show you how to repair or reinstall both Windows PowerShell 5.1 and the newer PowerShell 7 and later versions. Before we begin, be sure to subscribe to NinjaOne’s IT video hub and our YouTube channel for more tech content like this. Method 1: Reinstalling PowerShell 7+ You can uninstall, repair, or reinstall PowerShell in Windows. Each method works best for different situations. Before you start, keep in mind that reinstalling PowerShell 7+ may remove custom profiles, execution policies, or PATH configurations unless they are backed up. Use this method if you’re having problems with PowerShell 7 or newer. Since PowerShell 7+ can be completely uninstalled and reinstalled, It's perfect for fixing specific issues or doing a clean setup. Just follow the steps below to get started. First, uninstall your current version of PowerShell. Open Settings from the Start menu. Go to Apps > Installed apps. Search for PowerShell, click the three dots (•••), and select Uninstall. You can also remove it using PowerShell by running this command: winget uninstall Microsoft.PowerShell Once it's uninstalled, follow these steps to reinstall PowerShell 7+: Using WinGet: Open Command Prompt or PowerShell from the Start menu. Right-click it and select Run as administrator. Then, paste this command: winget install –id Microsoft.Powershell –source winget Using GitHub: Visit the official PowerShell GitHub page: github.com/PowerShell/PowerShell Click the Releases tab. Download the latest Windows .msi installer, then run it. Method 2: Repair Windows PowerShell 5.1 Next, use this method. if PowerShell 5.1 is having operating system–level issues. You can’t uninstall it, but you can repair or reset it with these steps: Using System File Checker: Search for Command Prompt in the Start menu. Right-click it and choose Run as administrator. Type sfc /scannow and press Enter. Using DISM: Search for Command Prompt in the Start menu. Right-click it and select Run as administrator. Type DISM /Online /Cleanup-Image /RestoreHealth and press Enter. Enable Windows PowerShell as an Optional Feature Open Control Panel from the Start menu. Go to Programs > Turn Windows features on or off. Make sure Windows PowerShell 2.0 and 5.1 (if available) are checked. If they aren't. Enable them and restart your PC. Method 3: Use the Microsoft Store You can install PowerShell 7+ directly from the Microsoft Store. It installs in a separate folder, C:\Program Files\WindowsApps and updates automatically. Here’s the simplified version: Open the Microsoft Store from the start menu. Search for PowerShell. Click Get to install the latest version. Reinstalling PowerShell helps keep it stable and fully functional. Whether you’re repairing version 5.1 or setting up PowerShell 7+, you can easily do it using the methods we covered. For more information, check out our official blog post on How to reinstall PowerShell in Windows Linked in the description below. Be sure to subscribe to NinjaOne’s IT video hub and our YouTube channel for more tech content like this.

How to Reinstall PowerShell in Windows

PowerShell acting up? Don’t worry — this quick guide shows you how to repair or reinstall both Windows PowerShell 5.1 and PowerShell 7+ to get everything running smoothly again. Learn how to fix common issues, perform clean installs using WinGet, GitHub, or the Microsoft Store, and restore key Windows features if needed.

Whether you’re troubleshooting errors or upgrading to a newer version, this video walks you through each method step-by-step.

Read the full blog on How to Reinstall PowerShell in Windows

Never miss a NinjaOne video!

in this video

    Never miss a video!