Created
January 16, 2015 04:11
-
-
Save runxc1/507962574fc81a04abc1 to your computer and use it in GitHub Desktop.
IIS Setup On clean machine- used Boxstarter to install
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
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