logo

Configuring IIS using command prompt

This article describes the installation of IIS components for Windows 2008 R2 and Windows 2012 R2 using the command prompt. These settings must be configured before installing ELMA.

To begin, go to Start –> Windows System and start the Command Prompt (as the Administrator). In the command prompt, enter the commands for the respective servers:

Configuring IIS in Windows Server 2008 R2

dism /online /enable-feature  /featurename:IIS-WebServerRole
dism /online /enable-feature  /featurename:IIS-WebServer
dism /online /enable-feature  /featurename:IIS-ISAPIExtensions
dism /online /enable-feature  /featurename:IIS-NetFxExtensibility
dism /online /enable-feature  /featurename:IIS-ISAPIFilter
dism /online /enable-feature  /featurename:IIS-ASP
dism /online /enable-feature  /featurename:IIS-ASPNET
dism /online /enable-feature  /featurename:IIS-CommonHttpFeatures
dism /online /enable-feature  /featurename:IIS-HttpErrors
dism /online /enable-feature  /featurename:IIS-ApplicationDevelopment
dism /online /enable-feature  /featurename:IIS-Security
dism /online /enable-feature  /featurename:IIS-RequestFiltering
dism /online /enable-feature  /featurename:IIS-HealthAndDiagnostics
dism /online /enable-feature  /featurename:IIS-HttpLogging
dism /online /enable-feature  /featurename:IIS-RequestMonitor
dism /online /enable-feature  /featurename:IIS-Performance
dism /online /enable-feature  /featurename:IIS-WebServerManagementTools
dism /online /enable-feature  /featurename:IIS-ManagementScriptingTools
dism /online /enable-feature  /featurename:IIS-StaticContent
dism /online /enable-feature  /featurename:IIS-DefaultDocument
dism /online /enable-feature  /featurename:IIS-DirectoryBrowsing
dism /online /enable-feature  /featurename:IIS-BasicAuthentication
dism /online /enable-feature  /featurename:IIS-HttpCompressionStatic
dism /online /enable-feature  /featurename:IIS-ManagementConsole
 

Configuring IIS in Windows Server 2012 R2

dism /online /enable-feature  /featurename:IIS-WebServerRole
dism /online /enable-feature  /featurename:IIS-WebServer
dism /online /enable-feature  /featurename:IIS-ISAPIExtensions
dism /online /enable-feature  /featurename:NetFx4Extended-ASPNET45
dism /online /enable-feature  /featurename:IIS-NetFxExtensibility45
dism /online /enable-feature  /featurename:IIS-ISAPIFilter
dism /online /enable-feature  /featurename:IIS-ASP
dism /online /enable-feature  /featurename:IIS-ASPNET45
dism /online /enable-feature  /featurename:IIS-CommonHttpFeatures
dism /online /enable-feature  /featurename:IIS-HttpErrors
dism /online /enable-feature  /featurename:IIS-ApplicationDevelopment
dism /online /enable-feature  /featurename:IIS-Security
dism /online /enable-feature  /featurename:IIS-RequestFiltering
dism /online /enable-feature  /featurename:IIS-HealthAndDiagnostics
dism /online /enable-feature  /featurename:IIS-HttpLogging
dism /online /enable-feature  /featurename:IIS-RequestMonitor
dism /online /enable-feature  /featurename:IIS-Performance
dism /online /enable-feature  /featurename:IIS-WebServerManagementTools
dism /online /enable-feature  /featurename:IIS-ManagementScriptingTools
dism /online /enable-feature  /featurename:IIS-StaticContent
dism /online /enable-feature  /featurename:IIS-DefaultDocument
dism /online /enable-feature  /featurename:IIS-DirectoryBrowsing
dism /online /enable-feature  /featurename:IIS-BasicAuthentication
dism /online /enable-feature  /featurename:IIS-HttpCompressionStatic
dism /online /enable-feature  /featurename:IIS-ManagementConsole

IIS can be configured in the user interface as well. To learn more, read this article.