Relevance for SQL Cluster Name

I’m trying to get the SQL Cluster name of my windows servers. The problem there is some random Guid as a Key I do not know how to account for.

HKEY_LOCAL_MACHINE\Cluster\Resources\2555e185-f437-4f9f-8113-d9640f950718\Parameters\DnsName

HKEY_LOCAL_MACHINE\Cluster\Resources\44502324-cebc-401b-8282-bdcf2bd88754\Parameters\DnsName

If the key is random on various servers how do I get the name from the Parameters key?

Believe you can do something like the following.

keys “Parameters\DnsName” of keys of key “HKEY_LOCAL_MACHINE\Cluster\Resources” of native registry

1 Like

Did not produce any results. Any other suggestions?

Try
values "DnsName" of keys “Parameters" of keys of keys “HKEY_LOCAL_MACHINE\Cluster\Resources” of native registry

2 Likes

That worked like a charm. Thanks for the help.

1 Like