→ 🚀Are you a Lansweeper Champion?! Join our Contributor Program Sign up here!

Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
davidmcmorris
Engaged Sweeper

Hi,

I am trying to create a report which will search all laptops for the following files and report the machines which they are both not found. This is what I have so far but it is not working and bringing in loads of other machines which are not laptops. - any help appreciated. 

Select Top 1000000 tblassets.AssetID,
tblassets.AssetName,
tblassets.Username,
tsysassettypes.AssetTypename,
tsysassettypes.AssetTypeIcon10 As icon,
tblassets.IPAddress,
tblassets.Lastseen,
tblassets.Lasttried,
tblFileVersions.FilePathfull,
tblFileVersions.Found
From tblassets
Inner Join tblassetcustom On tblassets.AssetID = tblassetcustom.AssetID
Inner Join tsysassettypes On tsysassettypes.AssetType = tblassets.Assettype
Inner Join lansweeperdb.dbo.tblFileVersions On tblassets.AssetID =
tblFileVersions.AssetID
Where (tblassets.AssetName Like '%LT%' And tblFileVersions.FilePathfull =
'C:\ProgramData\Cisco\Cisco AnyConnect Secure Mobility Client\Profile\WelcomStaffSBL_client_profile.xml') Or
(tblFileVersions.FilePathfull =
'C:\OneDrive Migration\HomeFolders_OneDrive_Migration.bat' And
tblFileVersions.Found = 'FALSE' And tblassetcustom.State = 1)

0 REPLIES 0

Reports & Analytics

Ask about reports you're interested in and share reports you've created. Subscribe to receive daily updates of reports shared in the Community.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now