To install the Web Server role on a machine that already is running Windows Server® 2008 R2 (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 to start the Add Roles Wizard.
Click Server Roles.
Under Select one of more roles to install on this server, select Web Server (IIS).
Click Next and continue with the Add Roles Wizard.
Note
If you use the Add Roles Wizard to install IIS, you get the default installation, which has a minimum set of role services. If you need additional IIS role services, such as Application Development or Health and Diagnostics, make sure to select the check boxes associated with those features in the Select Role Services page of the wizard.
If you use this script, you get the full IIS installation, which installs all available feature packages. If there are feature packages you do not need, you should edit the script to install only the packages you require.
If you want to install IIS components that rely on the .NET Framework, you must first install the .NET Framework. The components that rely on the .NET Framework will not be installed if the .NET Framework is not already installed.
If you use this script, you get the full IIS installation, which installs all available feature packages for Server Core. If there are feature packages you do not need, you should edit the script to install only the packages you require.
As a Windows Server hybrid administrator, you integrate Windows Server environments with Azure services and manage Windows Server in on-premises networks.