Skip to content

Instantly share code, notes, and snippets.

@lurumad
Created March 13, 2018 13:57
Show Gist options
  • Save lurumad/8a22f4c64083bc043e8c2aac578fa522 to your computer and use it in GitHub Desktop.
Save lurumad/8a22f4c64083bc043e8c2aac578fa522 to your computer and use it in GitHub Desktop.
# Install IIS
Install-WindowsFeature Web-Server,Web-Asp-Net45,NET-Framework-Features
# Install the .NET Core SDK
Invoke-WebRequest https://download.microsoft.com/download/1/1/5/115B762D-2B41-4AF3-9A63-92D9680B9409/dotnet-sdk-2.1.4-win-x64.exe -outfile $env:temp\dotnet-sdk-2.1.4-win-x64.exe
Start-Process $env:temp\dotnet-sdk-2.1.4-win-x64.exe -ArgumentList '/quiet' -Wait
# Install the .NET Core Windows Server Hosting bundle
Invoke-WebRequest https://go.microsoft.com/fwlink/?LinkId=817246 -outfile $env:temp\DotNetCore.WindowsHosting.exe
Start-Process $env:temp\DotNetCore.WindowsHosting.exe -ArgumentList '/quiet' -Wait
# Restart the web server so that system PATH updates take effect
net stop was /y
net start w3svc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment