Created
July 4, 2020 10:38
-
-
Save velotiotech/f9a46ee3265594110c86379ca32fa898 to your computer and use it in GitHub Desktop.
powershell script to configure IIS on "Fresh Server"
This file contains 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
# To list all Windows Features: dism /online /Get-Features | |
# Get-WindowsOptionalFeature -Online | |
# LIST All IIS FEATURES: | |
# Get-WindowsOptionalFeature -Online | where FeatureName -like 'IIS-*' | |
# NetFx dependencies | |
dism /online /Enable-Feature /FeatureName:NetFx4 /All | |
# ASP dependencies | |
dism /online /enable-feature /all /featurename:IIS-ASPNET45 | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServer | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-CommonHttpFeatures | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-Security | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-RequestFiltering | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-StaticContent | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-DefaultDocument | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-DirectoryBrowsing | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpErrors | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ApplicationDevelopment | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebSockets | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ApplicationInit | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-NetFxExtensibility45 | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ISAPIExtensions | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ISAPIFilter | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ASP | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ASPNET45 | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ServerSideIncludes | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HealthAndDiagnostics | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpLogging | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-Performance | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpCompressionStatic | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerManagementTools | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ManagementConsole | |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ManagementService | |
# Install Chocolatey | |
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
# Install WebDeploy (It will deploy 3.6) | |
choco install webdeploy -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment