Skip to content

PowerShell Installation

This tutorial focuses on PowerShell 7+, recommended for use across all platforms. Common installation methods:

  • Windows:
    • Microsoft Store or download the official MSI installer
    • Package manager: winget install Microsoft.PowerShell
  • Linux:
    • Use distribution package manager (such as apt, dnf, zypper) or tar package
  • macOS:
    • Homebrew: brew install --cask powershell or brew install powershell

Check version:

powershell
$PSVersionTable

Launch methods:

  • Windows: Search for PowerShell in Start menu or add PowerShell profile in Windows Terminal
  • VS Code: Install PowerShell extension (ms-vscode.PowerShell), select PowerShell in built-in terminal

Update help (recommended for first-time use):

powershell
Update-Help -UICulture en-US -Force

Note: Enterprise environments may be restricted by execution policies. If you need to run local scripts, please understand Set-ExecutionPolicy and signing policies, and comply with organizational security policies.

Content is for learning and research only.