To install the Web Server role on a machine that already is running Windows Server® 2008 (as is the case when building a reference machine for deployment in a data center), follow these steps:
Important: Run these steps as an administrator.
To install the Web Server role using Server Manager
- Navigate to Administrative Tools and click Server Manager.
- In Server Manager, in the Roles Summary section, click Add Roles.
- Add Roles Wizard, on the Before You Begin page, click Next.
- On the Select Server Roles page, select Web Server (IIS).
- If a dialog box appears indicating that additional features are required, such as Windows Process Activation Service, add the required features.
- Click Next.
- On the Web Server (IIS) page, read the introduction. Click Next.
- On the Select Role Services page, select the appropriate role services per the above installation table, and then click Next.
- On the Confirm Installation Selections page, review your selections, and then click Install.
- On the Installation Results page, click Close.
To install the Web Server role using pkgmgr.exe
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-HealthAndDiagnostics;IIS-HttpLogging;IIS-RequestMonitor;IIS-HttpTracing;IIS-Security;IIS-URLAuthorization;IIS-RequestFiltering;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-ManagementScriptingTools;IIS-ManagementService;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;IIS-LegacyScripts;IIS-LegacySnapIn
Comments