Installing IIS from the command line

You can install the required IIS components from the command line using Deployment Imaging Servicing Management (DISM).

Open a Command prompt as an Administrator and run this command:
dism.exe /Enable-Feature /Online /All 
/FeatureName:IIS-DefaultDocument
/FeatureName:IIS-DirectoryBrowsing 
/FeatureName:IIS-HttpErrors 
/FeatureName:IIS-StaticContent
/FeatureName:IIS-HttpLogging 
/FeatureName:IIS-RequestMonitor 
/FeatureName:IIS-HttpCompressionStatic
/FeatureName:IIS-HttpCompressionDynamic 
/FeatureName:IIS-RequestFiltering
/FeatureName:IIS-BasicAuthentication 
/FeatureName:IIS-WindowsAuthentication
/FeatureName:IIS-NetFxExtensibility45 
/FeatureName:IIS-ASPNET45 
/FeatureName:IIS-ISAPIExtensions
/FeatureName:IIS-ISAPIFilter 
/FeatureName:IIS-ManagementConsole 
/FeatureName:IIS-ManagementScriptingTools
/FeatureName:IIS-IPSecurity

This command installs only the IIS components that are required by Optiva and the .NET Framework. The command does not upgrade the installed .NET version.