Created
June 14, 2017 03:34
-
-
Save stopthatastronaut/cda4f18ae6be36ece5dbe61821165cd4 to your computer and use it in GitHub Desktop.
Install URLRewrite and Application Request Routing
This file contains hidden or 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
$downloadUrl = "http://download.microsoft.com/download/C/F/F/CFF3A0B8-99D4-41A2-AE1A-496C08BEB904/WebPlatformInstaller_amd64_en-US.msi" | |
$downloadtarget = ([uri]$downloadUrl).segments | select -last 1 | |
Invoke-WebRequest $downloadUrl -OutFile $env:tmp\$downloadtarget | |
Start-Process $env:tmp\$downloadtarget '/qn' -PassThru | Wait-Process | |
Set-Location ($env:ProgramFiles + "\Microsoft\Web Platform Installer") | |
.\WebpiCmd.exe /Install /Products:'UrlRewrite2,ARRv3_0' /AcceptEULA /Log:$env:tmp\WebpiCmd.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment