How To Enable All IIS 10 Features on Windows Nano Server 2016

In this article, I’ll show you how to enable all IIS 10 Features on Windows Nano Server 2016 Server using PowerShell.

To get started, Connect to Nano Server, If you don’t have IIS Installed, Install the Nano Server Package Provider below:

Save-Module -Path "$Env:ProgramFiles\WindowsPowerShell\Modules\" -Name NanoServerPackage -MinimumVersion 1.0.1.0
Import-PackageProvider NanoServerPackage

To Install IIS On windows Nano Server 2016 use the cmdlet below:

install-NanoServerPackage -name Microsoft-NanoServer-IIS-Package -culture en-us

By default only the 7 IIS features below are enabled:

  1. Default document
  2. Directory browsing
  3. HTTP Errors
  4. Static content
  5. HTTP logging
  6. Static content compression
  7. Request filtering

To view all features and their Installation status use

Dism /online /Get-Features

To enable any of the disabled features,  use the line below:

dism /Enable-Feature /online /featurename:IIS-IPSecurity /all

To enable all the IIS 10 features, use the line below:

Get-WindowsOptionalFeature -Online | where {$_.FeatureName -match "IIS-" -and $_.State -eq [Microsoft.Dism.Commands.FeatureState]::Disabled} | % {Enable-WindowsOptionalFeature -Online -FeatureName $_.FeatureName}

To disable a feature use:

dism /disabe-Feature /online /featurename:IIS-IPSecurity /all

Below, You will find all the available features on Windows Nano Server 2016 IIS Server

  1. IIS-WebServer
  2. IIS-CommonHttpFeatures
  3. IIS-StaticContent
  4. IIS-DefaultDocument
  5. IIS-DirectoryBrowsing
  6. IIS-HttpErrors
  7. IIS-HttpRedirect
  8. IIS-ApplicationDevelopment
  9. IIS-CGI
  10. IIS-ISAPIExtensions
  11. IIS-ISAPIFilter
  12. IIS-ServerSideIncludes
  13. IIS-WebSockets
  14. IIS-ApplicationInit
  15. IIS-Security
  16. IIS-BasicAuthentication
  17. IIS-WindowsAuthentication
  18. IIS-DigestAuthentication
  19. IIS-ClientCertificateMappingAuthentication
  20. IIS-IISCertificateMappingAuthentication
  21. IIS-URLAuthorization
  22. IIS-RequestFiltering
  23. IIS-IPSecurity
  24. IIS-CertProvider
  25. IIS-Performance
  26. IIS-HttpCompressionStatic
  27. IIS-HttpCompressionDynamic
  28. IIS-HealthAndDiagnostics
  29. IIS-HttpLogging
  30. IIS-LoggingLibraries
  31. IIS-RequestMonitor
  32. IIS-HttpTracing
  33. IIS-CustomLogging

Leave a Reply