Skip to content
This repository was archived by the owner on May 22, 2022. It is now read-only.

Server2012WAR

SoftwareRat edited this page Mar 27, 2021 · 6 revisions

Server 2012 workaround

Default Server 2012 R2 PowerShell version is 4.0, what is out-to-date, so we need to upgrade to 5.1

  1. Open elevated Windows PowerShell
  2. Copy paste this:
Clear-Host; [Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"; (New-Object System.Net.WebClient).DownloadFile("https://download.microsoft.com/download/6/F/5/6F5FF66C-6775-42B0-86C4-47D41F2DA187/Win8.1AndW2K12R2-KB3191564-x64.msu", "C:\Users\Public\Downloads\Win8.1AndW2K12R2-KB3191564-x64.msu"); Write-Output "Installing PowerShell 5.1..."; Start-Process -FilePath 'C:\Windows\System32\wusa.exe' -ArgumentList '"C:\Users\Public\Downloads\Win8.1AndW2K12R2-KB3191564-x64.msu" /quiet /norestart' -Wait -NoNewWindow; Remove-Item -Path 'C:\Users\Public\Downloads\Win8.1AndW2K12R2-KB3191564-x64.msu'; Restart-Computer -Force

That was it, now Server 2012 R2 is prepared for this script. Have fun

Clone this wiki locally