I'm trying to create a report that lists all computers not having a specific software title installed.
I only want a return of all systems with OS Win 7, Win 10, or Win XP installed.
When I run the report the same PC can be listed multiple times. It seems the most usually reason is because of the DomainRole. I have added a filter to pull Member workstation only.
Can someone advise a way to pull a report with 1 Unique PC per line that fits the filter? (We are not using SQL Server)
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.IPAddress,
tblAssets.Domain,
tblFileVersions.Found,
tblFileVersions.FilePathfull,
tblAssets.Description,
tblFileVersions.Lastchanged,
tblAssets.Lastseen,
tblADComputers.OU,
tblAssets.Username As Username1,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssetCustom.Serialnumber,
tblDomainroles.Domainrolename,
tblAssetCustom.Location As Location1,
tblAssetCustom.Branchoffice,
tblAssetCustom.Building,
tblAssetCustom.Department,
tsysOS.OSname
From tblAssets
Inner Join tblFileVersions On tblAssets.AssetID = tblFileVersions.AssetID
Inner Join tblADComputers On tblAssets.AssetID = tblADComputers.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID,
tblDomainroles,
tsysOS
Where tblFileVersions.Found = 'False' And tblFileVersions.FilePathfull
Like 'c:\ProgramData\Dell\KACE\kinventory.db' And
tblDomainroles.Domainrolename = 'Member workstation' And tsysOS.OSname =
'Win XP' Or tsysOS.OSname =
'Win Win 7' tsysOS.OSname =
'Win 10'
Order By tblAssets.AssetName
I'm only concerned of the current installed OS, not any previously installed versions.
If I run the report and manually type a filter at the top section it works fairly correct. What I'd like to see is a way to take that filtered report of what I see and created an export of the code that could be saved and run later. Possible?