Created
November 18, 2019 00:26
-
-
Save mawiseman/cab07877576d5122ab3d7690266110b5 to your computer and use it in GitHub Desktop.
Installs the required modules to run IIS (and some other i use for development)
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
# Allow remote scripts | |
Set-ExecutionPolicy AllSigned | |
# Install SqlServer powershell modules | |
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | |
Install-Module -Name SqlServer | |
# Misc | |
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All -All | |
# Enable Windows IIS | |
# To list all Windows IIS Features: Get-WindowsOptionalFeature -Online | where FeatureName -like 'IIS-*' | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServer -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-CommonHttpFeatures -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpErrors -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpRedirect -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ApplicationDevelopment -All | |
Enable-WindowsOptionalFeature -online -FeatureName NetFx4Extended-ASPNET45 -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-NetFxExtensibility45 -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HealthAndDiagnostics -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpLogging -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-LoggingLibraries -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-RequestMonitor -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpTracing -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-Security -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-RequestFiltering -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-Performance -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerManagementTools -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-IIS6ManagementCompatibility -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-Metabase -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ManagementConsole -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-BasicAuthentication -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WindowsAuthentication -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-StaticContent -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-DefaultDocument -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebSockets -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ApplicationInit -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ISAPIExtensions -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ISAPIFilter -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpCompressionStatic -All | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ASPNET45 -All | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment