→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
pfenton
Engaged Sweeper III
I have pieced together this report that reports the full OS Build of Windows 10. It works, but it relies on 2 custom registry scans. The 2 custom scans are both from \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion. One is ReleaseID, and the other is UBR. In my case they would represent 17763, and 503 respectively.
After looking around at other reports, it seems that both of these keys are being scanned with out the custom scanning. I would like the report to work without the custom scanning, but can't figure it out. I am not a coder. I literally pieced together my report from other reports and a lot of guess work. Any help would be appreciated.


Select Top 1000000 tblAssets.AssetName,
tsysOS.OSname,
tsysOS.Image As icon,
tblAssets.OScode As [OS Build],
SubQuery.Value As [Sub Build],
tblAssets.IPAddress,
tblAssets.Lastseen,
tblRegistry.Value As [Build #]
From tblAssets
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join (Select tblRegistry.AssetID,
tblRegistry.Regkey,
tblRegistry.Valuename,
tblRegistry.Value,
tblRegistry.Lastchanged
From tblRegistry
Where tblRegistry.Valuename = 'UBR') SubQuery On SubQuery.AssetID =
tblAssets.AssetID
Inner Join tblRegistry On tblAssets.AssetID = tblRegistry.AssetID
Where tblRegistry.Valuename = 'ReleaseID' And tblAssetCustom.State = 1
Order By [OS Build],
[Sub Build]
1 REPLY 1
endyk
Engaged Sweeper III
Hello-

I'm not sure I fully understood your needs. But this query below should returns all OS build of windows. You can look at the result set and let me know what you want or don't want included in the result. We can continue from there.

Select Top 1000000
tblAssets.AssetName,
tsysOS.OSname,
tsysOS.Image As icon,
tblAssets.OScode As [OS Build],
tblRegistry.Value As [Sub Build],
tblAssets.IPAddress,
tblAssets.Lastseen,
tblRegistry.Value As [Build #],
tblRegistry.Valuename,
tblAssetCustom.State
From tblAssets
Inner Join tsysOS
On tsysOS.OScode = tblAssets.OScode
Inner Join tblAssetCustom
On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tblRegistry
On tblAssets.AssetID = tblRegistry.AssetID
Order By [OS Build],
[Sub Build]