How to Install PowerShell: A Step-by-Step Guide for Beginners 🖥️

PowerShell is a command-line tool and scripting language built by Microsoft that lets you control your computer and automate tasks more powerfully than the older Command Prompt. Whether you're managing files, administering systems, or learning to code, understanding how to install and set up PowerShell correctly matters.

This guide explains what PowerShell is, the main installation paths available, and the practical factors that shape which approach makes sense for your situation.

What Is PowerShell and Why You Might Need It

PowerShell is a task automation and configuration management framework that runs on Windows, macOS, and Linux. It combines a command-line shell with a scripting language, giving you direct access to your computer's operating system and applications.

You may encounter PowerShell if you:

  • Work in IT administration or support
  • Need to manage multiple computers or automate repetitive tasks
  • Develop software that integrates with Microsoft ecosystems
  • Learn scripting or programming
  • Troubleshoot system problems

The version you have—and how it's installed—depends on your operating system and what you're trying to accomplish.

The Two Versions of PowerShell

Microsoft maintains two distinct versions, and this distinction shapes your installation decision.

Windows PowerShell (version 5.1 and earlier) comes pre-installed on all modern Windows systems. It's built into the operating system and cannot be removed. If you open PowerShell on a Windows 10 or 11 machine today without downloading anything, you're using Windows PowerShell.

PowerShell Core (version 7 and later) is the newer, cross-platform version. It's a separate application you download and install from Microsoft. It runs on Windows, macOS, and Linux, and it's updated regularly with new features and security patches.

AspectWindows PowerShellPowerShell Core
Built-inYes (Windows only)No—download required
PlatformsWindows onlyWindows, macOS, Linux
UpdatesWith OS updates onlyFrequent independent updates
Best forBasic tasks, legacy scriptsModern workflows, cross-platform work

Installation Paths by Operating System

Your operating system determines what you actually need to do.

Windows Users

If you use Windows 10 or 11, PowerShell is already on your computer. Open the Start menu, type "PowerShell," and launch Windows PowerShell or PowerShell ISE (Integrated Scripting Environment—a text editor for writing scripts).

Many Windows users never need to install anything. You're ready to use what's already there.

However, if you want the newer PowerShell Core with the latest features, you'll download it separately. Microsoft provides installers and also distributes it through package managers like Chocolatey or Windows Package Manager, depending on how you prefer to manage software.

macOS Users

macOS does not include PowerShell. You'll need to download PowerShell Core. The most common methods are:

  • Downloading the installer directly from Microsoft's official website
  • Using Homebrew (a package manager for macOS) if you're comfortable with the command line

Linux Users

Linux distributions don't include PowerShell by default. Installation steps vary by distribution type (Ubuntu, CentOS, Fedora, etc.), but Microsoft provides documentation for each. You typically use your distribution's native package manager (apt, yum, or similar) to install PowerShell Core.

Key Variables That Shape Your Installation

Several factors determine whether you need to install anything at all:

Your operating system and version. Windows users have PowerShell built in; macOS and Linux users do not. Within Windows, older versions (like Windows 7) have different default versions than Windows 10 or 11.

What you're trying to do. If you're learning scripting or need cross-platform compatibility, PowerShell Core may be necessary. If you're running legacy scripts or performing basic administrative tasks on a single Windows machine, the built-in version may suffice.

Your comfort level with installation methods. Some users prefer graphical installers; others use command-line package managers. Your choice affects how straightforward the process feels.

Security and update requirements. Organizations sometimes mandate specific PowerShell versions for compliance or compatibility reasons. Check with your IT department if you're installing on a work computer.

General Best Practices Before You Install

  • Check what you already have. Windows users should verify their current version before assuming they need to install anything. Open PowerShell and type $PSVersionTable to see details.
  • Verify the source. Download PowerShell only from Microsoft's official website or trusted package repositories to avoid security risks.
  • Review system requirements. Different versions have different minimum operating system versions and hardware needs. Microsoft's documentation lists these clearly.
  • Plan for your workflow. Consider whether you'll be working across different operating systems, which strongly favors PowerShell Core.

What to Evaluate for Your Situation

Before installing, ask yourself:

  • Am I on Windows, macOS, or Linux?
  • Does the built-in version (if applicable) meet my immediate needs?
  • Do I need features from the latest version?
  • Will I work across multiple operating systems?
  • Does my organization have specific version requirements?

The answers to these questions determine whether you're installing PowerShell Core, using what's already there, or combining both versions. No single answer is correct for everyone—it depends entirely on your setup and goals.