I was trying to find servers with MS-SQL 2008, or MS-SQL 2014, and I tried the following relevance, but it doesn’t seem to be getting all the machine that I would expect (I checked BigFix Inventory, and I’m seeing quite a few more)
Here is what I’m using for MS-SQL 2008:
(exists keys whose (exists value "CurrentVersion" whose ((it = "10.00") of (it as string as version)) of key "MSSQLServer\CurrentVersion" of it) of (keys "HKLM\SOFTWARE\Microsoft\Microsoft SQL Server" of it) of (x32 registry))
and here is what I’m using for MS-SQL 2014:
(exists keys whose (exists value "CurrentVersion" whose ((it = "12.00") of (it as string as version)) of key "MSSQLServer\CurrentVersion" of it) of (keys "HKLM\SOFTWARE\Microsoft\Microsoft SQL Server" of it) of (x32 registry))
Would changing x32 registry to x32 registry;x64 registry catch more systems? Is there something else that needs to be checked for?
Thanks,
Bob_K