It is not possible to delete features that have already been installed in the Add Roles and Features wizard of Server Manager. If you want to delete roles 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 can uninstall the entire IIS at once. Alternatively, you can remove a single role, role service, or feature by simply unchecking it in the wizard.This is a tutorial that demonstrates on a step by step basis how to uninstall Internet Information Service (IIS) 8.5 using the Server Manager and PowerShell from Windows Server 2012 R2.
How to Uninstall IIS 8.5 Using Server Manager
Step 1: Open The ServerManager
Click on the Server Manager icon on your desktop in order to open Server Manager.
Step 2: Remove Roles and Features
At the top of the Server Manager, click on Manage and then click on Remove Roles and Features.
Step 3: Click Next
Click on Next on the Before you begin page.
Step 4: Select the server
Choose the server from the server pool on the Server Selection page and then click on Next.
Step 5: Clear Server Roles Check Box
If there is any server role or role service you want to remove, go to the Remove Server Roles page and clear its checkbox.
Step 6: Remove Features
The Remove Features dialogue box will appear showing the dependencies of any role service that has feature dependencies if you clear its checkbox. Remove them by click on Remove Features. As an option, you can remove the entire IIS by unchecking Web Server (IIS).
Step 7: Choose Other Roles You Want to Remove
Choose any other role or role service which you want to remove on the Remove Server Roles page, and then click on Next.
Step 8: Uncheck Features You Want to Remove From The Features Page
If there are any features you would like to remove, uncheck them on the Features page. A dialogue box will appear with dependencies if you uncheck a feature that has feature dependencies. To remove them, click on Remove Features. After this, click Next on the Features page.
Step 9: Verify That The Features You Want To Remove Are Correct
Verify on the Confirmation page, that the features, roles and role services which you want to remove are correct, and then click on Remove.
If you are prompted to restart your computer, it is recommended that you do so, except there are other activities that you want to carry out before the restart takes place. When you remove features, roles and role services, a restart is really important.
Step 10: Check The Progress
Next is the Removal Progress page that is displayed. Closing the wizard will not interrupt tasks that are running. By clicking on Notifications inthe notification area and then clicking on Task Details, you can view task progress or open the page again.
Step 11: Close The Result Page
Click on Close on the Results page.
To finish removing the features, restart the destination server.
B. How To Uninstall IIS 8.5 Using PowerShell
The PowerShell cmdlet UnInstall-WindowsFeature can also be used to uninstall IIS 8.5. To see the syntax of the cmdlet, you have to run the get-help Install-WindowsFeature at a PowerShell command line. You need to take note of the following while running the cmdlet:
- An elevation is needed by cmdlet. You have to be running a Windows PowerShell session as the administrator before you can run the cmdlet.
- Again, the cmdlet cannot uninstall management tools for features, roles, and role services automatically. You will have to add the IncludeManagementTools parameter to the cmdlet in order to do so.
Conclusion
In this tutorial, you have learned how to uninstall the Internet Information Service (IIS) 8.5 using either the Server Manager or PowerShell from Windows Server 2012 R2. The peculiarities and limitations of each method have also been spelled out. You should be able to easily perform the operation with this guide. However, if you need any further help, do not hesitate to leave us a note.
Check out these top 3 Windows hosting services:
- Looking for the best windows hosting? Click this link and check all our recommendations.