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.
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:
The version you have—and how it's installed—depends on your operating system and what you're trying to accomplish.
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.
| Aspect | Windows PowerShell | PowerShell Core |
|---|---|---|
| Built-in | Yes (Windows only) | No—download required |
| Platforms | Windows only | Windows, macOS, Linux |
| Updates | With OS updates only | Frequent independent updates |
| Best for | Basic tasks, legacy scripts | Modern workflows, cross-platform work |
Your operating system determines what you actually need to do.
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 does not include PowerShell. You'll need to download PowerShell Core. The most common methods are:
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.
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.
Before installing, ask yourself:
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.
