다음을 통해 공유


IIS: Easy Feature Installation with PowerShell

Here is a script in PowerShell which can make your work easy when you want to deploy all IIS features for an application or a role in Windows Server all editions.

$IISfeature = “web-server”,”web-asp-net”,”web-asp-net45″,”web-net-ext”,”web-net-ext45″,”net-http-activation”,”web-common-http”,”web-default-doc”,”web-dir-browsing”,”web-static-content”,”web-http-redirect”,”web-dav-publishing”,”web-http-logging”,”web-health”,”web-custom-logging”,”web-request-monitor”,”web-http-tracing”,”web-performance”,”web-stat-compression”,”web-dyn-compression”,”web-security”,”web-filtering”,”web-basic-auth”,”web-ip-security”,”web-windows-auth”,”web-app-dev”,”web-asp”,”Web-cgi”,”web-isapi-ext”,”web-isapi-filter”,”web-includes”,”web-ftp-server”,”web-ftp-service”,”web-ftp-ext”,”web-mgmt-tools”,”web-mgmt-console”,”web-mgmt-compat”,”web-metabase”,”web-lgcy-mgmt-console”,”web-lgcy-scripting”,”web-wmi”,”web-scripting-tools”


install-windowsfeature -name $IISfeature


Enable-WindowsOptionalFeature -Online -FeatureName WCF-TCP-Activation45
Enable-WindowsOptionalFeature -Online -FeatureName WCF-HTTP-Activation45
Enable-WindowsOptionalFeature -Online -FeatureName WCF-TCP-PortSharing45
Enable-WindowsOptionalFeature -Online -FeatureName IIS-HttpErrors
Enable-WindowsOptionalFeature -Online -FeatureName IIS-LoggingLibraries
Enable-WindowsOptionalFeature -Online -FeatureName IIS-ApplicationInit