본문 바로가기

프로그래밍

Windows 기능 켜기/끄기 명령줄(Command line)로 설치하기





Windows 기능 켜기/끄기 명령줄(Command line)로 설치하기



명령 프롬포트(cmd)를 관리자 권한으로 실행합니다.


IIS를 사용하기 위해 아래 와 같이 명령을 수행합니다.

뒤에 /all을 붙히지 않으면 설치가 제대로 되지 않습니다.


start dism /online /Enable-Feature /FeatureName:NetFx3 /all

start dism /online /Enable-Feature /FeatureName:WCF-HTTP-Activation /all

start dism /online /Enable-Feature /FeatureName:WCF-NonHTTP-Activation /all

start dism /online /Enable-Feature /FeatureName:NetFx4-AdvSrvs /all

start dism /online /Enable-Feature /FeatureName:WCF-TCP-PortSharing45 /all

start dism /online /Enable-Feature /FeatureName:NetFx4Extended-ASPNET45 /all

start dism /online /Enable-Feature /FeatureName:IIS-WindowsAuthentication /all

start dism /online /Enable-Feature /FeatureName:IIS-BasicAuthentication /all

start dism /online /Enable-Feature /FeatureName:IIS-RequestFiltering /all

start dism /online /Enable-Feature /FeatureName:IIS-HttpLogging /all

start dism /online /Enable-Feature /FeatureName:IIS-ODBCLogging /all

start dism /online /Enable-Feature /FeatureName:IIS-HttpErrors /all

start dism /online /Enable-Feature /FeatureName:IIS-DefaultDocument /all

start dism /online /Enable-Feature /FeatureName:IIS-DirectoryBrowsing /all

start dism /online /Enable-Feature /FeatureName:IIS-StaticContent /all

start dism /online /Enable-Feature /FeatureName:IIS-IIS6ManagementCompatibility /all

start dism /online /Enable-Feature /FeatureName:IIS-Metabase /all

start dism /online /Enable-Feature /FeatureName:IIS-ManagementService /all

start dism /online /Enable-Feature /FeatureName:IIS-ManagementScriptingTools /all

start dism /online /Enable-Feature /FeatureName:IIS-ManagementConsole /all

start dism /online /Enable-Feature /FeatureName:IIS-ApplicationDevelopment /all

start dism /online /Enable-Feature /FeatureName:IIS-NetFxExtensibility /all

start dism /online /Enable-Feature /FeatureName:IIS-NetFxExtensibility45 /all

start dism /online /Enable-Feature /FeatureName:IIS-ASPNET /all

start dism /online /Enable-Feature /FeatureName:IIS-ASPNET45 /all

start dism /online /Enable-Feature /FeatureName:IIS-ISAPIExtensions /all

start dism /online /Enable-Feature /FeatureName:IIS-ISAPIFilter /all

start dism /online /Enable-Feature /FeatureName:IIS-ServerSideIncludes /all

start dism /online /Enable-Feature /FeatureName:IIS-WebSockets /all

start dism /online /Enable-Feature /FeatureName:IIS-ApplicationInit /all


IIS 6 관리 콘솔은 FeatureName도 보이지 않고 설치가 안되는 이슈가 있습니다.