Created
June 15, 2016 22:59
-
-
Save chadmyers/05f097c431772cd3f729d20185fb793d to your computer and use it in GitHub Desktop.
Install IIS UrlRewrite 2.0 on Windows 10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(new-object net.webclient).DownloadFile("https://download.microsoft.com/download/6/7/D/67D80164-7DD0-48AF-86E3-DE7A182D6815/rewrite_2.0_rtw_x64.msi", "$env:TEMP\rewrite_2.0x64.msi") | |
Push-Location HKLM:\Software\Microsoft\InetStp | |
$prevMajorVer = Get-ItemProperty -path . | Select -expandproperty MajorVersion | |
Set-ItemProperty . MajorVersion 9 | |
$process = start-process "msiexec" -windowstyle Hidden -ArgumentList "/i $env:TEMP\rewrite_2.0x64.msi /quiet /norestart /qn" -PassThru -Wait | |
$result = $process.ExitCode | |
Set-ItemProperty . MajorVersion $prevMajorVer | |
Pop-Location | |
iisreset |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment