Installing IIS on a Server with Windows Server Minimal Installation

This article explains how to install IIS on a server that is running Microsoft Windows Server 2012 R2, Microsoft Windows Server 2016, and Microsoft Windows Server 2019.

Internet Information Services (IIS) are not installed by default in the minimum installation of Microsoft Windows Server 2012 R2, Microsoft Windows Server 2016, and Microsoft Windows Server 2019 operating systems.

To be able to use IIS, you must install it on the server in question and then configure it. To install IIS on a server that is running Microsoft Windows Server 2012 R2, Microsoft Windows Server 2016, and Microsoft Windows Server 2019:

Installing IIS Using the Server Manager

Requirement
  • You have logged on to the server as an administrator.

  • Press the [Windows] key and select Server Manager.

  • In the Server Manager Dashboard, click Manage > Add Roles and Features.

  • Click Installation Type.

  • Select the Role-based or feature-based installation option and click Next.

  • Select the server on which you want to install IIS and click Next.

Note

If multiple servers are displayed, you can quickly and easily determine the name of your server. To determine the name of your server, press the [Windows] key and the [Pause] key.

  • Activate the Web Server (IIS) role.

  • To add the IIS Management Console, click Add Features.

  • Click Next. The SelectFeatures window will open.

  • Click Next. The Web Server Role (IIS) window will open.

  • Click Next. The Select Role Services window will open.

  • Select the required role services and click Next.

  • To install the selected roles, role services, and features, click Install.

  • To complete the installation, click Close.

Installing IIS in the PowerShell

  • In the search, type PowerShell, and then click Windows PowerShell.

  • In Windows PowerShell, type the following command:
    Install-WindowsFeature -name Web Server -IncludeManagementTools

  • Press [ENTER].

    The Internet Information Services (IIS) Manager will be installed.