Installing PowerShell¶
PowerShell 7+ is available on Windows, macOS, and Linux. Choose your platform below.
Windows¶
- Go to the PowerShell releases page
- Download the
.msifile for your architecture (x64 for most systems) - Run the installer and follow the prompts
- Open Windows Terminal or search for PowerShell 7 in the Start menu
Windows PowerShell vs PowerShell 7
Windows still ships with Windows PowerShell 5.1 (powershell.exe). PowerShell 7+ installs alongside it as pwsh.exe — they do not replace each other.
macOS¶
Download the .pkg file from the releases page and run it.
Linux¶
Verify Your Installation¶
After installing, confirm the version:
Expected output (version numbers will vary):
Name Value
---- -----
PSVersion 7.5.0
PSEdition Core
GitCommitId 7.5.0
OS Microsoft Windows 10.0.22621
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Setting Up the Execution Policy (Windows)¶
On Windows, scripts are blocked by default. Allow locally-written scripts to run:
| Policy | What it allows |
|---|---|
Restricted |
No scripts at all (default on Windows) |
AllSigned |
Only code-signed scripts |
RemoteSigned |
Local scripts + signed remote scripts |
Unrestricted |
All scripts (not recommended) |
Bypass |
Nothing blocked — use only in pipelines |
Recommended Tools¶
| Tool | Purpose |
|---|---|
| VS Code + PowerShell Extension | Best editor with IntelliSense, debugging, and integrated terminal |
| Windows Terminal | Modern tabbed terminal that works great with pwsh |
| PSReadLine | Included in PS 7 — syntax highlighting and predictive IntelliSense in the console |
| oh-my-posh | Beautiful prompt themes |
| posh-git | Git status in your prompt |