Use this script to fully install IIS and to edit it as needed to install the required feature packs. Note that the script command line does not support II7 installations under Server Core, and for full installation scripts under Server Core, visit: Perform a full installation of IIS7 under Server Core because the Server core does not support. Net Framewor K, so IIS7 can not support dotnet.
START/W pkgmgr/iu:iis-webserverrole;iis-webserver;iis-commonhttpfeatures;iis-staticcontent;iis-defaultdocument ; Iis-directorybrowsing;iis-httperrors;iis-httpredirect;iis-applicationdevelopment;iis-aspnet;iis-
netfxextensibility;iis-asp;iis-cgi;iis-isapiextensions;iis-isapifilter;iis-serversideincludes;iis- Healthanddiagnostics;iis-httplogging;iis-logginglibraries;iis-requestmonitor;iis-httptracing;iis-customlogging ; iis-odbclogging;iis-security;iis-basicauthentication;iis-windowsauthentication;iis-digestauthentication;i Is-clientcertificatemappingauthentication;iis-iiscertificatemappingauthentication;iis-urlauthorization;i Is-requestfiltering;iis-ipsecurity;iis-performance;iis-httpcompressionstatic;iis-httpcompressiondynamic;i Is-webservermanagementtools;iis-managementconsole;iis-managementscriptingtools;iis-managementservice;i Is-iis6managementcompatibility;iis-metabase;iis-wmicompatibility;iis-legacyscripts;iis-legacysnapin;i Is-ftppublishingservice;iis-ftpserver;iis-ftpmanagement; Was-windowsactivationservice; Was-processmodel; Was-netfxenvironment; Was-configurationapi
The following script then IIS7 the default installation, that is, to minimize the installation.
START/W Pkgmgr/iu:iis-webserverrole; Was-windowsactivationservice; Was-processmodel
Note: No line wrapping is included in the above script.
Original link: http://goxia.maytide.net