Notification

Icon
Error

Properties of a file submitted for custom file scanning

Posted: Tuesday, January 6, 2015 3:03:18 PM(UTC)
Susan.A

Susan.A

Member Administration Original PosterPosts: 1,537
1
Like
The report below lists the properties of a file submitted for custom file scanning. Replace what's marked in yellow with the name of the file you've submitted for file scanning. Info on setting up custom file scanning can be found in this knowledge base article.

The report will only list assets that meet all of the following criteria:
  • The asset is a Windows computer.
  • The computer's state is set to "active".
  • The computer has been successfully scanned at least once.

Code:
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 LastFileScan,
  Case
    When TsysLastscan.Lasttime < GetDate() -
    1 Then
    'Last file scan more than 24 hours ago! Scanned file information may not be up-to-date. Try rescanning this machine.' End As Comment,
  SubQuery1.PatchSearched,
  Case SubQuery1.Found When 1 Then 'Yes' Else 'No' End As FileFound,
  SubQuery1.FileVersion,
  SubQuery1.CompanyName,
  SubQuery1.Filesize,
  SubQuery1.CreationDate,
  SubQuery1.LastAccessed,
  SubQuery1.LastModified,
  SubQuery1.Lastchanged
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 tblFileVersions.AssetID,
    tblFileVersions.FilePathfull As PatchSearched,
    tblFileVersions.Found,
    tblFileVersions.FileVersion,
    tblFileVersions.CompanyName,
    tblFileVersions.Filesize,
    tblFileVersions.Lastchanged,
    tblFileVersions.CreationDate,
    tblFileVersions.LastAccessed,
    tblFileVersions.LastModified
  From tblFileVersions
  Where tblFileVersions.FilePathfull Like '%[h]iexplore.exe[/h]') SubQuery1
    On SubQuery1.AssetID = tblAssets.AssetID
Where tblAssetCustom.State = 1 And TsysWaittime.CFGname = 'files'
Order By tblAssets.Domain,
  tblAssets.AssetName

Active Discussions

Lansweeper Reports - Printers
by  AEckrich  
Go to last post Go to first unread
Last post: 6/24/2022 2:23:41 PM(UTC)
Lansweeper Network printers not detected as a printer?
by  Erik.T   Go to last post Go to first unread
Last post: 6/24/2022 1:06:47 PM(UTC)
Lansweeper Contact external mail / helpdesk - external mail
by  Wolfgang   Go to last post Go to first unread
Last post: 6/24/2022 7:46:19 AM(UTC)
Lansweeper Asset Check-in Check-out - Email Alert
by  hcssit@hcss.com  
Go to last post Go to first unread
Last post: 6/23/2022 8:42:55 PM(UTC)
Lansweeper I can no longer scan my Windows assets
by  pflebus   Go to last post Go to first unread
Last post: 6/23/2022 1:50:58 PM(UTC)
Lansweeper What do you use for remote support?
by  Diddyman  
Go to last post Go to first unread
Last post: 6/23/2022 11:30:46 AM(UTC)