Skip to content

Instantly share code, notes, and snippets.

@developerprofiles
Forked from brlinton/enable-iis-tools.ps1
Created June 28, 2021 13:18
Show Gist options
  • Save developerprofiles/a5ebd6e86b4ae6b1e2433e1128f24651 to your computer and use it in GitHub Desktop.
Save developerprofiles/a5ebd6e86b4ae6b1e2433e1128f24651 to your computer and use it in GitHub Desktop.
Enable IIS tools form the command line
# 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