Relevance Analyses

(imported topic written by RobertDiRosato)

I have a lot of MS SharePoint servers in production and they all share the same key that tells me the version is.

For some reason when I write the expression it just reports N/A.

I have used this expression for other reg keys in HKLM and it works like a charm…

Is there another way I can write this?

I have the Latest TEM/BigFix Installed (Agents & Relays also updated)

If (exists value “Version” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0” of registry) Then (values “Version” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0” of registry as string) Else “N/A”

Thanks in advance for your assistance

(imported comment written by NoahSalzman)

Relevance looks right.

Run this to determine if there really is a Version key there:

(name of it, it) of values of key 
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0" of registry as string

Also, in version 8.0 and up you can simplify your expression to be in this form:

(value 
"Version" of key 
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0" of registry as string) | 
"N/A"

(imported comment written by RobertDiRosato)

Noah,

Thanks for the reply it still says N/A

attached is a screen shot of the reg key in gif format.

It’s weird I’ve used that expression on other keys and it works fine…

See attached screen shot I hope you can help

(imported comment written by RobertDiRosato)

I even tried this with no luck

if (exists value “SharePoint” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0” of registry) then “SharePoint 2010” else “No Version”

I’m wondering if that part of the registry has different permissions.

(imported comment written by NoahSalzman)

Oh, that gives me an idea.

Instead of “of registry” try “of native registry” and also “of x64 registry”.

(imported comment written by RobertDiRosato)

Noah thanks again…

It worked…

Your a genius

If (exists value “Version” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0” of native registry) Then (values “Version” of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0” of native registry as string) Else “N/A”