Check IIS Component installed or not using c#

Binumon George 161 Reputation points
2022-08-29T08:23:58.227+00:00

Hi All,
Please let me know how check programmatically Windows authentication, Forms authentication, Anonymous authentication installed or not in IIS using c#?

Internet Information Services
0 comments No comments
{count} votes

Accepted answer
  1. Yurong Dai-MSFT 2,786 Reputation points Microsoft Vendor
    2022-08-30T02:42:53.857+00:00

    Hi @Binumon George ,
    Microsoft has published a list of registry keys that show whether any given IIS module has been installed. Use these registry keys to programmatically check on IIS components. If a component has been installed, the registry key has a DWORD value of 00000001. If a component has never been installed or has been uninstalled, the registry key does not exist. The registry hive is as follows:

    HKEY_LOCAL_MACHINE\Software\Microsoft\InetStp\Components\  
    

    Refer to this document, match the IIS component name to its registry key.


    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 email notification for this thread.

    Best regards,

    Yurong Dai


0 additional answers

Sort by: Most helpful