Skip to content

Instantly share code, notes, and snippets.

@stopthatastronaut
Created June 14, 2017 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stopthatastronaut/cda4f18ae6be36ece5dbe61821165cd4 to your computer and use it in GitHub Desktop.
Save stopthatastronaut/cda4f18ae6be36ece5dbe61821165cd4 to your computer and use it in GitHub Desktop.
Install URLRewrite and Application Request Routing
$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