Skip to content

Instantly share code, notes, and snippets.

@timcunningham
Last active January 13, 2020 16:50
Show Gist options
  • Save timcunningham/d29a05009347e57fab99eae7dd97a261 to your computer and use it in GitHub Desktop.
Save timcunningham/d29a05009347e57fab99eae7dd97a261 to your computer and use it in GitHub Desktop.
IISInstall.ps1
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
# start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST>
# OR
# Install-BoxstarterPackage -PackageName <URL-TO-RAW-GIST> -DisableReboots
#
# Learn more: http://boxstarter.org/Learn/WebLauncher
# To list all Windows Features: dism /online /Get-Features
# Get-WindowsOptionalFeature -norestart -Online
# LIST All IIS FEATURES:
# Get-WindowsOptionalFeature -norestart -Online | where FeatureName -like 'IIS-*'
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-WebServerRole
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-WebServer
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-CommonHttpFeatures
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-HttpErrors
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-HttpRedirect
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-ApplicationDevelopment
Enable-WindowsOptionalFeature -norestart -Online -FeatureName NetFx4Extended-ASPNET45
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-NetFxExtensibility45
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-HealthAndDiagnostics
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-HttpLogging
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-LoggingLibraries
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-RequestMonitor
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-HttpTracing
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-Security
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-RequestFiltering
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-Performance
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-WebServerManagementTools
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-IIS6ManagementCompatibility
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-Metabase
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-ManagementConsole
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-BasicAuthentication
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-WindowsAuthentication
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-StaticContent
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-DefaultDocument
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-WebSockets
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-ApplicationInit
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-ISAPIExtensions
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-ISAPIFilter
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-HttpCompressionStatic
Enable-WindowsOptionalFeature -norestart -Online -FeatureName IIS-ASPNET45
# The following optional components require
# Chocolatey OR Web Platform Installer to install
choco install iis.administration -y
# Install UrlRewrite Module for Extensionless Urls (optional)
choco install urlrewrite -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment