Blog
default-iis-website

How to Install IIS with PowerShell on Windows Server 2016 / VPS

Installing IIS With PowerShell

If you don’t have the GUI installed or just want to use the PowerShell command line interface (CLI) instead, follow these steps. This method is a lot faster than going through all of the GUI options.

  1. Open PowerShell with administrative privileges and run the Install-WindowsFeature cmdlet as shown below.
    Install-WindowsFeature -name Web-Server -IncludeManagementToolspowershell-install-iis
  2. Here we include the management tools so that you can manage IIS on this server, as these are generally installed when using the GUI, making this PowerShell command equivalent with the GUI method below. If you do not plan on managing IIS through this server then you may prefer to not include this option.
  3. Once the installation has succeeded, you’ll be returned to the PowerShell prompt. At this point IIS should be running on port 80 by default with the firewall rule “World Wide Web Services (HTTP Traffic-In)” enabled in Windows firewall automatically.
  4. We can perform a simple test by opening up a web browser and browsing to the server that we have installed IIS on. You should see the default IIS page.

default-iis-website

This article applies to:

  • Windows Server 2016
This entry was posted in Tech Support, VPS Hosting, Windows Server, Windows VPS. Bookmark the permalink. Trackbacks are closed, but you can post a comment.



Questions? We're here to help.    Chat with us