Share via

How do I remove this IIS from my computer?

Marie Swarts 5 Reputation points
2026-04-23T21:35:45.34+00:00

I did not ask for IIS so I would like it deleted. How do I accomplish that?

Windows development | Internet Information Services
0 comments No comments

2 answers

Sort by: Most helpful
  1. Tom Tran (WICLOUD CORPORATION) 4,860 Reputation points Microsoft External Staff Moderator
    2026-04-24T03:53:52.7966667+00:00

    Hi @Marie Swarts ,

    IIS is a Windows built-in feature, so you'll need to remove it through Windows Features:

    1. Press Win + R, type optionalfeatures, and hit Enter
    2. Uncheck Internet Information Services from the list
    3. Click OK, then restart when prompted

    If that doesn't fully remove it, open PowerShell as Administrator and run:

    Get-WindowsOptionalFeature -Online | Where-Object { $_.FeatureName -like "IIS*" -and $_.State -eq "Enabled" } | Disable-WindowsOptionalFeature -Online -Remove
    

    For better details, you can check this post out:


    If you found my response helpful or informative, I would greatly appreciate it if you could follow this guidance provide feedback. Thank you.


  2. Q&A Assist
    2026-04-23T21:36:06.5666667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To remove IIS from a Windows Server 2012 R2 computer, use either Server Manager or PowerShell.

    Using Server Manager (GUI):

    1. Open Server Manager (click the Server Manager icon on the desktop).
    2. At the top, click Manage and then Remove Roles and Features.
    3. On Before you begin, click Next.
    4. On Server Selection, select the server from the server pool and click Next.
    5. On Remove Server Roles, find Web Server (IIS) and clear its check box.
      • If a Remove Features dialog appears listing dependencies, click Remove Features.
    6. Click Next.
    7. On the Features page, uncheck any additional features you want to remove, then click Next.
    8. On the Confirmation page, verify that Web Server (IIS) and any related items are listed, then click Remove.
    9. If prompted, restart the server to complete removal.

    Using PowerShell:

    1. Open Windows PowerShell as Administrator (elevated session is required).
    2. Run the uninstall cmdlet for IIS, for example:
         Uninstall-WindowsFeature Web-Server -IncludeManagementTools
      
      • Uninstall-WindowsFeature requires admin rights.
      • -IncludeManagementTools ensures IIS management tools are also removed.
    3. Restart the server if prompted.

    If the system is Windows 8.1 or Windows Server 2012 R2 and update KB2919355 is installed, and IIS uninstall fails or rolls back, install the additional update described in the IIS uninstall issue article before trying to uninstall IIS again.


    References:

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.