How to Install PowerShell in Windows 10: A Step-by-Step Guide

Windows 10 already includes Windows PowerShell 5.1, so most users do not need to install “PowerShell” to use basic Windows administration commands. Modern PowerShell 7 is a separate, cross-platform product that can be installed alongside Windows PowerShell rather than replacing it.

Check what is already installed

  1. Open Start and search for Windows PowerShell.
  2. Launch it and run $PSVersionTable.PSVersion.
  3. If the result begins with 5.1, you are using the built-in Windows PowerShell.
  4. Run pwsh from Terminal or Command Prompt to see whether PowerShell 7 is also installed.

Install PowerShell 7 from an official source

If a script or application requires modern PowerShell, use Microsoft’s current installation documentation and supported package source, such as the official Microsoft Store/package manager option or signed installer described by Microsoft. Avoid repackaged installers from download sites.

PowerShell 7 coexists with version 5.1

Modern PowerShell normally uses pwsh.exe, while Windows PowerShell uses powershell.exe. Some legacy Windows modules still require 5.1, so deleting or attempting to overwrite the built-in component can break administrative workflows.

Install only the version your scripts support

Check module and script requirements before changing environments. PowerShell 7 improves compatibility and features in many areas, but it is not automatically interchangeable with every older Windows PowerShell module.

Windows 10 lifecycle matters

Regular Windows 10 support ended October 14, 2025. Eligible Windows 10 22H2 consumer PCs can receive ESU security updates through October 12, 2027, while Microsoft recommends moving compatible PCs to Windows 11.

For ongoing administration, keep PowerShell itself and the underlying operating system on supported, patched versions.