→ Having trouble accessing our new support portal or creating a ticket? Please notify our team here

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Liamsy11
Engaged Sweeper
Hi,

I need a report which shows all Windows PC's along with their custom registry keys scanned in a report.

For example, I want to be able to show Asset name, Software Version (Symantec Endpoint Protection) and two different registry keys which I have added to the registry key scanning. I can see the report for each of these keys individually using the report button in scanning but i would like all the above information to be in one report.

The 2 registry keys are

SOFTWARE\Symantec\Symantec Endpoint Protection\CurrentVersion\Public-Opstate Reg Value 'LatestVirusDefsDate'

SOFTWARE\Symantec\Symantec Endpoint Protection\CurrentVersion\Public-Opstate Reg Value 'LatestVirusDefsRevision'

I have no expertise when it comes to SQL queries and would really appreciate some help here. I have tried multiple times to get this to work but to no avail.

Many thanks,

Liam
1 REPLY 1
impagian
Engaged Sweeper
We did it like this:



Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblAssets.Lasttried,
TsysLastscan.Lasttime As LastRegistryScan,
Case
When TsysLastscan.Lasttime < GetDate() - 1 Then
'Last registry scan more than 24 hours ago! Scanned registry information may not be up-to-date. Try rescanning this machine.'
End As Comment,
SubQuery1.Value As WindowsOnlineUpdate,
SubQuery2.Value As WindowsOnlineUpdateUser,
SubQuery3.Value As WindowsOnlineUpdateDate,
SubQuery4.Value As DellOnlineUpdate,
SubQuery5.Value As DellOnlineUpdateDone,
SubQuery6.Value As DellOnlineUpdateDone,
SubQuery7.Value As OfficeVersion
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join TsysLastscan On tblAssets.AssetID = TsysLastscan.AssetID
Inner Join TsysWaittime On TsysWaittime.CFGCode = TsysLastscan.CFGcode
Left Join (Select Top 1000000 tblRegistry.AssetID,
tblRegistry.Regkey,
tblRegistry.Valuename,
tblRegistry.Value,
tblRegistry.Lastchanged
From tblRegistry
Where tblRegistry.Regkey Like '%SOFTWARE\CompanyName' And
tblRegistry.Valuename = 'WindowsOnlineUpdate') SubQuery1 On
SubQuery1.AssetID = tblAssets.AssetID
Left Join (Select Top 1000000 tblRegistry.AssetID,
tblRegistry.Regkey,
tblRegistry.Valuename,
tblRegistry.Value,
tblRegistry.Lastchanged
From tblRegistry
Where tblRegistry.Regkey Like '%SOFTWARE\CompanyName' And
tblRegistry.Valuename = 'WindowsOnlineUpdateUser') SubQuery2 On
SubQuery2.AssetID = tblAssets.AssetID
Left Join (Select Top 1000000 tblRegistry.AssetID,
tblRegistry.Regkey,
tblRegistry.Valuename,
tblRegistry.Value,
tblRegistry.Lastchanged
From tblRegistry
Where tblRegistry.Regkey Like '%SOFTWARE\CompanyName' And
tblRegistry.Valuename = 'WindowsOnlineUpdateDate') SubQuery3 On
SubQuery3.AssetID = tblAssets.AssetID
Left Join (Select Top 1000000 tblRegistry.AssetID,
tblRegistry.Regkey,
tblRegistry.Valuename,
tblRegistry.Value,
tblRegistry.Lastchanged
From tblRegistry
Where tblRegistry.Regkey Like '%SOFTWARE\CompanyName' And
tblRegistry.Valuename = 'DellOnlineUpdate') SubQuery4 On
SubQuery4.AssetID = tblAssets.AssetID
Left Join (Select Top 1000000 tblRegistry.AssetID,
tblRegistry.Regkey,
tblRegistry.Valuename,
tblRegistry.Value,
tblRegistry.Lastchanged
From tblRegistry
Where tblRegistry.Regkey Like '%SOFTWARE\CompanyName' And
tblRegistry.Valuename = 'DellOnlineUpdateUser') SubQuery5 On
SubQuery5.AssetID = tblAssets.AssetID
Left Join (Select Top 1000000 tblRegistry.AssetID,
tblRegistry.Regkey,
tblRegistry.Valuename,
tblRegistry.Value,
tblRegistry.Lastchanged
From tblRegistry
Where tblRegistry.Regkey Like '%SOFTWARE\CompanyName' And
tblRegistry.Valuename = 'DellOnlineUpdateDate') SubQuery6 On
SubQuery6.AssetID = tblAssets.AssetID
Left Join (Select Top 1000000 tblRegistry.AssetID,
tblRegistry.Regkey,
tblRegistry.Valuename,
tblRegistry.Value,
tblRegistry.Lastchanged
From tblRegistry
Where tblRegistry.Regkey Like '%SOFTWARE\CompanyName' And
tblRegistry.Valuename = 'OfficeVersion') SubQuery7 On
SubQuery7.AssetID = tblAssets.AssetID
Where tblAssetCustom.State = 1 And TsysWaittime.CFGname = 'registry'
Order By tblAssets.Domain,
tblAssets.AssetName