Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form
Home » Web Server » Add and remove IIS Web Server on Windows Server 2019 via the Server Manager and PowerShell

Add and remove IIS Web Server on Windows Server 2019 via the Server Manager and PowerShell

Posted on 03/03/202125/03/2024 Christian By Christian No Comments on Add and remove IIS Web Server on Windows Server 2019 via the Server Manager and PowerShell
IIS_Installed

This article explore how to add and remove IIS web server. Kindly refer to the following related contents: Event ID 5059: Application pool has been disabled or Changing identity user for IIS Application Pooland how to setup and configure Windows server update services (WSUS). The Web Server (IIS) role in Windows Server 2019 provides a secure, easy-to-manage, modular, and extensible platform for reliably hosting websites, services, and applications.

Therefore, with IIS 10 you can share information with users on the Internet, intranet, or extranet. IIS 10 is a unified web platform that integrates IIS, ASP.NET, FTP services, PHP, and Windows Communication Foundation (WCF).

It supports HTTP, HTTP/2, HTTPS, FTP, FTPS, and SMTP etc. , how to install Pleasant Password Server, how to perform redirection from HTTP to HTTPS, how to configure SSL between WSUS upstream and downstream servers

In this article, I will deliberately miss a role service installation and I will be showing you how to do (install and uninstall this service) via PowerShell. But then, let us install the IIS role via this via the Server Manager. 

Add and Remove IIS Web Server

Click on the Server Manager icon on your desktop in order to open Server Manager. From the Server Manager, click on Manage.

Click on click on “Add Roles and Features”. You may want to see the following guide too How to Disable HTTP TRACE Method for Apache, IIS, sunOne, and Lotus Domino.

How to add and remove IIS-d-role

Note: You can decide to skip the “Before you begin” page for just click on Next as shown below.

How to add and remove IIS-b4youbegin

Select Role based or feature based installation as shown below. We are not interested in setting up Remote Desktop Services, so this option is irrelevant.

How to add and remove IIS-rolebased

Choose the server from the server pool on the Server Selection page and then click on Next. We currently have one server selected by default. When there are multiple serves in the server pool, please take not to select the right server.

How to add and remove IIS-server

Here, I will be installing the Web Server (IIS) as shown below.

How to add and remove IIS
IIS

You can also select the role and any other role you may want to install. As you can see it has been selected.

How to add and remove IIS
removeiis 1

I will be clicking on Next to continue as I do not have any feature to install. However, this may not be your case!

How to add and remove IIS-features

Add Web Server (IIS) Features

You will receive prompt on the following Window below. Click on the Add Features to add the management tools for IIS

add-roles

To proceed with the process of adding and removing the IIS Web Server, simply click “Next” on the Web Server Role (IIS) section. This step is for information purposes.

webserver

As I said, I will not be adding additional role service I need on purpose just to demonstrate how this can be done via PowerShell. Please check all applicable roles that you need.

roleservices

To add and remove IIS web server, you will have to confirm (verify) on this page that the features, roles, and role services which you have selected are correct.

When they are not correct, please use the “Previous” button. Otherwise click on Install to install the role, features and role services.

conf1-1

On the result page, the installation progress will be displayed. You can close this window below if you are impatient even when the installation has not completed and it will complete in the background.

IISInstallation

As you can see from the image above, the installation has succeeded. Thus, we will not launch the IIS tool. There are various ways to launch the IIS console when adding and removing IIS web server.

However, you can use the Tool menu and select “IIS Manager” or select IIS as shown below, right click on the server and select “IIS Manager”

Launch-IIS

This will Open IIS 10 console as shown below. That is all you need to install the IIS web server role.

ISS_1

Install IIS with PowerShell

You can automate the IIS role and features installation by using the Powershell cmdlet. Please run the commands below. You can optionally also install additional features by using the “Add Roles and Features” wizard.

Install-WindowsFeature -name Web-Server -IncludeManagementTools

Install WebDAV redirector server 2019

This guide walks you through the installation of WebDAV redirector. If you want to access a WebDAV share on a Windows Server 2016 or 2019, you have to install a feature that is not activated in the standard installation.

The best way to do this is to start a PowerShell as admin and enter the following:

Install-WindowsFeature WebDAV-Redirector –Restart
Screenshot-2021-03-03-at-01.21.30

Note: You can also launch the Add roles and features wizard and select the WebDAV-Redirector and have it installed as well. But I just wanted to show to you that PowerShell is capable of doing this.

To uninstall IIS via the Server Manager

If you wish to remove certain roles (IIS in my case) and features, you will have to use the “Remove Roles and Features” wizard of Server Manager. By just unchecking the IIS Web Server Role, you will be able to remove (uninstall) the IIS web server role at once.

You can remove a single role, role service, or feature by simply unchecking it in the wizard. Please follow the steps below to remove the ISS role from Windows Server 2019.

Remove Roles and Features

Click on the Server Manager icon on your desktop in order to open Server Manager. From the Server Manager, click on Manage and then click on click on the “Remove Roles and Features”.

Add and remove Web Server -removeiis-2

Note: You can decide to skip the “Before you begin” page for just click on Next as shown below.

Add and remove Web Server - b4youbegin-1

Choose the server from the server pool on the Server Selection page and then click on Next.

We currently have one server and this is selected by default. When there are multiple serves in the server pool, please take not to select the right server.

Add and remove Web Server -server-selection

Here, I will be unchecking the Web Server (IIS) as shown below. Adding and removing IIS web server also involves removal of every other role you no longer want from this window.

Just clear its checkbox. If you have additional features installed, you will be promoted to remove them. In my case, I do not have any feature, so I will skip this window below.

Add and remove Web Server -features-1

Another step to follow to add and remove IIS web server is the verification of features and role services. Now, you will have to confirm (verify) on this page that the features, roles, and role services which you have selected are correct.

You can optionally click on the “Restart the destination server automatically if required”. When you are done, please click on Remove. Click on YES when prompted to acknowledge the automatic server restart

Add and remove Web Server - removeiis
removeiis

It is recommended to have your server restarted after removing features, roles, and role services. You can continue working if you have other actions to perform on the server, but remember to restart the server afterwards.

Add and remove Web Server -restart
restart

You will be prompted with the result page as shown below. This will also show you the IIS web server removal progress

Add and remove Web Server -progressiis

Remove the IIS Web Server Role with PowerShell

To remove the webserver role via PowerShell, you will have to launch the PowerShell console as administrator and issue the following command in PowerShell. This will remove your IIS configuration and yu must restart your server.

Uninstall-WindowsFeature -remove Web-Server
Add and remove Web Server -remiss

I hope you found this blog post on how to Add and remove IIS Web Server on Windows Server 2019 via the Server Manager and PowerShell helpful. If you have any questions, please let me know in the comment session. Adding and removing IIS web server has become easy with these steps.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Web Server Tags:HTTPS, IIS, Internet, Internet Information Services, Windows 10

Post navigation

Previous Post: How to install PSD Hydration Kit for remote bare-metal deployment or via PXE boot
Next Post: Failure 5456: Unable to determine destination disk, partition, and/or drive, see BDD Log

Related Posts

  • apache ubuntu 20 04
    How to Install Apache HTTP Server on Ubuntu 20.04 LTS Linux
  • wordpresserrorsiteadmin
    There has been a critical error on this website please check your site admin email inbox for instructions Web Server
  • hgjk
    Understanding the different types of Proxy Servers Web Server
  • Jenkins
    How to Install Jenkins Automation Server on Ubuntu 20.04 LTS Linux
  • banner 3
    How to Create a React App with Vite Version Control System
  • Azure VM Creation With CLI 1
    Deploy a Linux virtual machine (VM) on Azure using the Azure CLI AWS/Azure/OpenShift

More Related Articles

apache ubuntu 20 04 How to Install Apache HTTP Server on Ubuntu 20.04 LTS Linux
wordpresserrorsiteadmin There has been a critical error on this website please check your site admin email inbox for instructions Web Server
hgjk Understanding the different types of Proxy Servers Web Server
Jenkins How to Install Jenkins Automation Server on Ubuntu 20.04 LTS Linux
banner 3 How to Create a React App with Vite Version Control System
Azure VM Creation With CLI 1 Deploy a Linux virtual machine (VM) on Azure using the Azure CLI AWS/Azure/OpenShift

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

Veeam Vanguard

  • SystoLOCK Passwordless Authentication
    Protect your Windows Devices with MFA with SystoLOCK Security | Vulnerability Scans and Assessment
  • Windows Productivity Tips
    Windows Productivity Tips To Get The Most Out Of Your PC Windows
  • Microsoft365
    Microsoft 365 Backup: Why is it imperative to protect M365? Backup
  • shut down 650x300 1
    How to prevent users from shutting down in a Virtual Machine Windows
  • article 1280x720.192a2586
    Windows Deployment Services: How to setup and install WDS role Windows Server
  • Banner
    How to Stop OneDrive from Starting Up Automatically on Windows 11 Windows
  • BitLocker34
    BitLocker Back Door: Stolen laptop to inside the company network Security | Vulnerability Scans and Assessment
  • Screenshot
    Setup iSCSI Target and Storage LUN on Synology DS923+ for VBR Reviews

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,808 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.