Would you like to learn how to install the IIS server using Powershell? In this tutorial, we are going to show you how to install IIS on a computer running Windows.

• Windows 2012 R2
• Windows 2016
• Windows 2019

Equipment list

Here you can find the list of equipment used to create this tutorial.

This link will also show the software list used to create this tutorial.

Related tutorial – PowerShell

On this page, we offer quick access to a list of tutorials related to PowerShell.

Tutorial Powershell – Installing IIS

As an Administrator, start an elevated Powershell command-line.

Windows 10 - powershell elevated

Verify if IIS is already installed.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Install the IIS server using Powershell.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Configure the IIS service to start automatically.

Copy to Clipboard

Open your browser and enter the IP address of your web server.

In our example, the following URL was entered in the Browser:

• http://192.168.100.10

The IIS default web page should be presented.

IIS - default web page

Congratulations! You are able to install the IIS server using Powershell.