Uninstall IIS from windows 10

Binumon George 161 Reputation points
2022-09-05T13:41:51.59+00:00

I am trying to uninstall IIS permanently from my windows 10 system. For that i am following below method

Control Panel->Turn windows features on or Off -> Uncheck the Internet information service then clicking on Ok button

But still if I implement below code, getting values in componenentsKey variable

using (var componentsKey = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\InetStp", false))
{
}
Pleas let me know how we can remove all reference of IIS from System?

Internet Information Services
{count} votes

2 answers

Sort by: Most helpful
  1. Sam Wu-MSFT 7,531 Reputation points Microsoft Vendor
    2022-09-06T10:10:05.87+00:00

    @Binumon George

    After uninstalling iis, then remove the configuration files located under C:\Windows\System32\inetsrv, this will completely uninstall iis.

    More information you can refer to this link: https://stackoverflow.com/a/64060384/13336642.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Sam Wu-MSFT 7,531 Reputation points Microsoft Vendor
    2022-09-07T08:06:43.33+00:00

    @Binumon George

    Your problem is not to completely remove iis? Why do you need to reinstall it again? You can change the folder to the previous name and then reinstall iis.


Your answer

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