5 Replies Latest reply on Jun 29, 2011 5:16 PM by Bill Robinson

    Wildcard in registry key used as part for discovery

    Antonio Caputo

      I want to create a Component Template in which I need to discovery the registry key NameServer that is under a path like this:

       

      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{6248AFEF-14A8-48A8-8B60-5A7AA63208EF}\NameServer

       

      The problem is that the {6248AFEF-14A8-48A8-8B60-5A7AA63208EF} changes from server to server so I cannot use the previous registry key as part as it is.

       

      So I thought to use a wildcard changing it (in the Part and in the Compliance Rule also) in something like:

       

      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\*\NameServer

       

      but the discovery job doesn't return any value for that part (I tried also with

       

      Is there any way (regular expression for example) that I can use instead of *?

       

      Thank you