‎09-27-2024 03:04 PM
Dear community,
Could any user help me with creating a report that tracks uninstalled software from the last 30 days?
Solved! Go to Solution.
‎10-02-2024 11:43 AM - edited ‎10-02-2024 12:03 PM
Report for Windows:
Select Top 1000000 tblAssets.assetid,
tblAssets.Domain,
tblAssets.AssetName,
tblAssets.OScode,
tblAssets.Userdomain,
tblAssets.Username,
tblSoftwareUni.SoftwarePublisher,
tblSoftwareUni.softwareName,
tblsoftwareHist.softwareVersion,
Max(tblsoftwareHist.Lastchanged) max_lastchanged,
Case tblsoftwareHist.Action
When 1 Then 'Added'
When 2 Then 'Removed'
When 3 Then 'Updated'
End As Action
From tblsoftwareHist
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblsoftwareHist.softid
Inner Join tblAssets On tblAssets.AssetID = tblsoftwareHist.AssetID And
tblsoftwareHist.Action = 2
Left Join tblsoftware t On t.assetid = tblsoftwareHist.assetid And
t.softid = tblsoftwareHist.softid
Where t.AssetID Is Null And tblsoftwareHist.Lastchanged > GetDate() - 30
Group By tblAssets.assetid,
tblAssets.Domain,
tblAssets.AssetName,
tblAssets.OScode,
tblAssets.Userdomain,
tblAssets.Username,
tblSoftwareUni.SoftwarePublisher,
tblSoftwareUni.softwareName,
tblsoftwareHist.softwareVersion,
tblsoftwareHist.Action
Order By max_lastchanged Desc
‎09-30-2024 10:21 AM
Describe the algorithm in words - how should the query work?
‎10-01-2024 03:31 PM - edited ‎10-01-2024 03:31 PM
Dear,
Basically, I would like to know the software that was uninstalled from my Windows and (Linux, if possible) assets.
‎10-02-2024 11:50 AM
LS doesn't support history for linux-assets.
‎10-02-2024 11:43 AM - edited ‎10-02-2024 12:03 PM
Report for Windows:
Select Top 1000000 tblAssets.assetid,
tblAssets.Domain,
tblAssets.AssetName,
tblAssets.OScode,
tblAssets.Userdomain,
tblAssets.Username,
tblSoftwareUni.SoftwarePublisher,
tblSoftwareUni.softwareName,
tblsoftwareHist.softwareVersion,
Max(tblsoftwareHist.Lastchanged) max_lastchanged,
Case tblsoftwareHist.Action
When 1 Then 'Added'
When 2 Then 'Removed'
When 3 Then 'Updated'
End As Action
From tblsoftwareHist
Inner Join tblSoftwareUni On tblSoftwareUni.SoftID = tblsoftwareHist.softid
Inner Join tblAssets On tblAssets.AssetID = tblsoftwareHist.AssetID And
tblsoftwareHist.Action = 2
Left Join tblsoftware t On t.assetid = tblsoftwareHist.assetid And
t.softid = tblsoftwareHist.softid
Where t.AssetID Is Null And tblsoftwareHist.Lastchanged > GetDate() - 30
Group By tblAssets.assetid,
tblAssets.Domain,
tblAssets.AssetName,
tblAssets.OScode,
tblAssets.Userdomain,
tblAssets.Username,
tblSoftwareUni.SoftwarePublisher,
tblSoftwareUni.softwareName,
tblsoftwareHist.softwareVersion,
tblsoftwareHist.Action
Order By max_lastchanged Desc
‎10-02-2024 02:11 PM
Thank you, very much!
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now