Notification

Icon
Error

Need a little help here - I'm trying to create a software audit by Name to get Product Keys

Posted: Thursday, November 18, 2021 3:07:25 PM(UTC)
AMcCarron

AMcCarron

Member Original PosterPosts: 1
0
Like
I'm trying to create a software audit by Name and need to be able to get the Product Id and Product Key. I am trying to create a search for the Name of the software and get the Product key that corresponds with it. any help would be great.

Quote:
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetUnique,
tblAssets.Domain,
tblAssets.Username,
tsysOS.OSname,
tblSerialnumber.Product,
tblSerialnumber.ProductID,
tblSerialnumber.ProductKey,
tblADusers.Displayname As [User],
tblSoftwareUni.softwareName As software,
tblSoftware.softwareVersion As version,
tblSoftwareUni.SoftwarePublisher As publisher,
tsysOS.Image As icon
From tblSoftware
Inner Join tblAssets On tblSoftware.AssetID = tblAssets.AssetID
Inner Join tblSerialnumber On tblAssets.AssetID = tblSerialnumber.AssetID
Inner Join tblSoftwareUni On tblSoftware.softID = tblSoftwareUni.SoftID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tblAssets.OScode = tsysOS.OScode
Left Join tblADusers On tblADusers.Username = tblAssets.Username And
tblADusers.Userdomain = tblAssets.Userdomain
Where tblSoftwareUni.softwareName Like '%ExampleSoftware%' And
tblAssetCustom.State = 1
Order By tblAssets.AssetName,
software,
version

Active Discussions

Lansweeper Log4j report
by  LightUpDiFire  
Go to last post Go to first unread
Last post: Yesterday at 1:54:52 PM(UTC)
Lansweeper Linux Polkit Vulnerability
by  Esben.D   Go to last post Go to first unread
Last post: Yesterday at 12:16:37 PM(UTC)
Lansweeper Combined Vulnerability Report Q1 2019
by  Hendrik.VE  
Go to last post Go to first unread
Last post: 1/24/2022 5:05:24 PM(UTC)
Lansweeper Microsoft Patch Tuesday – January 2022
by  Esben.D  
Go to last post Go to first unread
Last post: 1/18/2022 2:59:23 PM(UTC)
Lansweeper SCCM end of life
by  Esben.D   Go to last post Go to first unread
Last post: 1/18/2022 11:41:00 AM(UTC)