logo

Настройка IIS с помощью командной строки

В данной статье мы рассмотрим установку компонентов IIS для Windows 2008 R2 и Windows 2012 R2 c помощью командной строки. Настройку необходимо осуществить перед установкой системы ELMA.

Для начала необходимо перейти в меню Пуск – Служебные – Windows и запустить приложение Командная строка (от имени Администратора). В открывшемся окне необходимо ввести команды для соответствующих серверов:

Настройка IIS в 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
dism /online /enable-feature /featurename:IIS-WindowsAuthentication

Настройка IIS в 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
dism /online /enable-feature /featurename:IIS-WindowsAuthentication

Настройку IIS также можно осуществить в графическом интерфейсе пользователя. Подробнее об этом см. в статье «Настройка IIS под работу с ELMA».