Skip to content

Files

Latest commit

Jun 2, 2020
b03b968 · Jun 2, 2020

History

History
25 lines (18 loc) · 731 Bytes

install-powershell.ps1-README.md

File metadata and controls

25 lines (18 loc) · 731 Bytes

install-powershell.ps1

Features of install-powershell.ps1

  • Can be called directly from git
  • Optionally allows install of the latest Preview build
  • Optionally allows install of the Daily build
  • Optionally installs using the latest MSI
  • Automatically looks up latest version via git tags
  • Optionally installs silently
  • Optionally adds the install location to Path environment variable

Examples

Install PowerShell Core Daily Build

Invoke-Expression "& { $(Invoke-RestMethod 'https://aka.ms/install-powershell.ps1') } -daily"

Install PowerShell Core using the MSI installer

Invoke-Expression "& { $(Invoke-RestMethod 'https://aka.ms/install-powershell.ps1') } -UseMSI"