Posts Updating PowerShell to the latest or Preview release via REST method
Post
Cancel

Updating PowerShell to the latest or Preview release via REST method

  • Latest stable version:
    1
    
    Invoke-Expression "& { $(Invoke-RestMethod 'https://aka.ms/install-powershell.ps1') }"
    
  • Latest Preview version
    1
    
    Invoke-Expression "& { $(Invoke-RestMethod 'https://aka.ms/install-powershell.ps1') } -UseMSI -Preview"
    

Updating PowerShell to Preview release

This post is licensed under CC BY 4.0 by the author.