Advertisement
PC_Aide

Upgrade_PowerShell_3_to_4_on_Windows7.ps1

Oct 13th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <#
  2.    Upgrading existing Windows PowerShell : https://docs.microsoft.com/en-us/powershell/scripting/setup/installing-windows-powershell?view=powershell-6
  3.  
  4.    env:TEMP=%tmp%
  5.  
  6.    O/P : http://pix.toile-libre.org/upload/original/1539475216.png
  7. #>
  8.  
  9. #RunAdmin:
  10. $Path = $env:TEMP; $Installer ="Windows6.1-KB2819745-x64-MultiPkg.msu"; Invoke-WebRequest -Uri "https://download.microsoft.com/download/3/D/6/3D61D262-8549-4769-A660-230B67E15B25/Windows6.1-KB2819745-x64-MultiPkg.msu" -OutFile $Path\$Installer; Start-Process -FilePath $Path\$Installer -Wait; Remove-Item -Path $Path\$Installer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement