Skip to content

Instantly share code, notes, and snippets.

@runxc1
Created January 16, 2015 04:11
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 runxc1/507962574fc81a04abc1 to your computer and use it in GitHub Desktop.
Save runxc1/507962574fc81a04abc1 to your computer and use it in GitHub Desktop.
IIS Setup On clean machine- used Boxstarter to install
try {
#cinst DotNet4.5
#cinst dotnet4.5.2
#Enable Web Services
cinst IIS-WebServerRole -source WindowsFeatures
cinst IIS-ISAPIFilter -source WindowsFeatures
cinst IIS-ISAPIExtensions -source WindowsFeatures
#Enable ASP.NET on win 2012/8
cinst IIS-NetFxExtensibility45 -source WindowsFeatures
cinst NetFx4Extended-ASPNET45 -source WindowsFeatures
cinst IIS-ASPNet45 -source WindowsFeatures
#Enable ASP.NET on win 7/2008R2
#."$env:windir\microsoft.net\framework\v4.0.30319\aspnet_regiis.exe" -i
#Import-Module WebAdministration
#Remove-WebSite -Name "Default Web Site" -ErrorAction SilentlyContinue
#New-WebSite -ID 1 -Name NugetServer -Port 80 -PhysicalPath c:\web\NugetServer -Force
Write-ChocolateySuccess 'IIS Is Ready'
} catch {
Write-ChocolateyFailure 'IIS Setup Failure' $($_.Exception.ToString())
throw
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment