→ 🚀What's New? Explore Lansweeper's Fall 2024 Updates! Fall Launch Blog !
‎04-07-2020 11:34 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysOS.OSname As [Operating System],
tsysAssetTypes.AssetTypeIcon10 As icon,
tblRegistry.Value As [.Net Version],
Case
When SubQuery1.Value >= '528040' Then '4.8'
When SubQuery1.Value >= '461808' Then '4.7.2'
When SubQuery1.Value >= '461308' Then '4.7.1'
When SubQuery1.Value >= '460798' Then '4.7'
When SubQuery1.Value >= '394802' Then '4.6.2'
When SubQuery1.Value >= '394254' Then '4.6.1'
When SubQuery1.Value >= '393295' Then '4.6'
When SubQuery1.Value >= '379893' Then '4.5.2'
When SubQuery1.Value >= '378675' Then '4.5.1'
When SubQuery1.Value >= '378389' Then '4.5'
Else 'Registry key not scanned or .Net 4.5 and later not detected'
End As [.Net Release],
tblAssets.IPAddress,
tsysIPLocations.IPLocation As [Office Location],
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblRegistry On tblAssets.AssetID = tblRegistry.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Left Outer Join tsysIPLocations On tblAssets.IPNumeric >=
tsysIPLocations.StartIP And tblAssets.IPNumeric <= tsysIPLocations.EndIP
Left Join (Select Top 1000000 tblRegistry.AssetID,
tblRegistry.Value
From tblRegistry
Where tblRegistry.Valuename = 'Release' And
tblRegistry.Regkey Like '%NET Framework Setup\NDP\v4\Full') As SubQuery1
On tblAssets.AssetID = SubQuery1.AssetID
Where tblRegistry.Valuename = 'Version' And
tblRegistry.Regkey Like '%NET Framework Setup\NDP\v4\Full' And
tblAssets.Assettype = -1
Order By 'Office Location',
tblAssets.AssetName
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysOS.OSname As [Operating System],
tsysAssetTypes.AssetTypeIcon10 As icon,
tblRegistry.Value As [.Net Version],
SubQuery1.Value As [.Net Service Pack],
tblAssets.IPAddress,
tsysIPLocations.IPLocation As [Office Location],
tblAssets.Lastseen,
tblAssets.Lasttried
From tblAssets
Inner Join tblRegistry On tblAssets.AssetID = tblRegistry.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Left Outer Join tsysIPLocations On tblAssets.IPNumeric >=
tsysIPLocations.StartIP And tblAssets.IPNumeric <= tsysIPLocations.EndIP
Left Join (Select Top 1000000 tblRegistry.AssetID,
tblRegistry.Value
From tblRegistry
Where tblRegistry.Valuename = 'SP' And tblRegistry.Regkey Like
'%NET Framework Setup\NDP\v3.5') As SubQuery1 On tblAssets.AssetID =
SubQuery1.AssetID
Where tblRegistry.Valuename = 'Version' And
tblRegistry.Regkey Like '%NET Framework Setup\NDP\v3.5' And
tblAssets.Assettype = -1
Order By 'Office Location',
tblAssets.AssetName
‎06-25-2020 12:51 PM
‎04-09-2020 02:54 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now