Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Clear-Host
- $NewPSVer = Read-Host "Please enter version number"
- $downloadFile = "https://github.com/PowerShell/PowerShell/releases/download/v$NewPSVer/PowerShell-$NewPSVer-win-x64.msi"
- $newFile = "PowerShell-$newPSVer-win-x64.msi"
- $Output = "C:\Support\PowerShell-$newFile"
- $webClient = New-Object System.Net.WebClient
- $webClient.DownloadFile($downloadFile,$Output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement