how to find the display name for IIS v10 or above in regkey value

Anonymous
2024-03-12T14:37:02.9366667+00:00

Hi All,

I am trying to get the Inventory list for IIS applications using below string on SNOW tools.

IIS v8 we are using thus key to discover the product --> HKLM/Software/Microsoft/Windows/current version/Uninstall String/&BF61.....8CCC7 --> Display name "IIS version 8"

Same we are trying to fetch the regkey path/value to discovery purposes. But we are not seeing the regkey value "Display name "IIS version 10"

Looking your valuable commands.

Thanks,

Nagarajan.

Windows development | Internet Information Services
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 60,326 Reputation points
    2024-03-12T14:52:06.1+00:00

    IIS is a Windows component, not something that can be uninstalled via Add & Remove Programs. As such checking the registry isn't the correct way to do this. There is no uninstall option for IIS.

    If you have PS then the preferred approach is to use Get-WindowsFeature. This tells you whether a feature is installed. Unfortunately, I think it only works on Server OS.

    The registry keys for IIS can change between versions so using the registry is iffy at best. However, at least on current Windows 10, you can look for HKLM\Software\Microsoft\InetStp\VersionString. If IIS is installed then it'll contain a value there. But that can change in newer versions of IIS so be warned.


  2. Lex Li 6,037 Reputation points Microsoft Employee
    2024-03-12T16:07:05.9733333+00:00

    The only supported registry keys for IIS are documented in articles like

    https://learn.microsoft.com/troubleshoot/developer/webapps/iis/general/use-registry-keys

    So, if you use PowerShell to query

    Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\InetStp"
    

    you will find what you need, either a certain patterned string, or raw version numbers.


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.