Last active
June 28, 2021 13:18
-
-
Save brlinton/af0c67b047b7bc1f9f94 to your computer and use it in GitHub Desktop.
Enable IIS tools form the command line
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
# Remove the /all if you receive any errors | |
& dism /online /get-features | more | |
& dism /online /enable-feature /FeatureName:IIS-CertProvider /all | |
& dism /online /enable-feature /FeatureName:IIS-WindowsAuthentication /all | |
& dism /online /enable-feature /FeatureName:IIS-ClientCertificateMappingAuthentication /all | |
& dism /online /enable-feature /FeatureName:IIS-StaticContent /all | |
& dism /online /enable-feature /FeatureName:IIS-DefaultDocument /all | |
& dism /online /enable-feature /FeatureName:IIS-WebSockets /all | |
& dism /online /enable-feature /FeatureName:IIS-ASPNET /all | |
& dism /online /enable-feature /FeatureName:IIS-ASPNET45 /all | |
& dism /online /enable-feature /FeatureName:IIS-BasicAuthentication /all | |
& dism /online /enable-feature /FeatureName:IIS-ManagementService /all | |
& dism /online /enable-feature /FeatureName:IIS-HttpCompressionStatic /all | |
& dism /online /enable-feature /FeatureName:IIS-HostableWebCore /all | |
& dism /online /enable-feature /FeatureName:IIS-WebServerManagementTools /all | |
& dism /online /enable-feature /FeatureName:IIS-ManagementScriptingTools /all | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had to enable the following features as prerequisites:
I also got the following errors (running Windows 7, Visual Studio 2017, .Net Framework 4.6.1):