‎08-04-2016 11:09 PM
Select Top 1000000 tsysOS.Image As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblFileVersions.Found,
tblFileVersions.FilePathfull,
tblFileVersions.FileVersion,
tblFileVersions.CompanyName,
tblFileVersions.Filesize,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssets.Description,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblAssetCustom.Location,
tsysIPLocations.IPLocation,
tsysOS.OSname As OS,
tblAssets.SP As SP,
tblAssets.Firstseen,
tblAssets.Lastseen
From tblAssets
Inner Join tblFileVersions On tblAssets.AssetID = tblFileVersions.AssetID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Left Join tsysIPLocations On tsysIPLocations.LocationID = tblAssets.LocationID
Where tblFileVersions.FilePathfull Like '%wfcrun32.exe' And
tblFileVersions.FileVersion < 14.0 And tblAssets.Assettype = -1
Order By tblAssets.AssetName
Solved! Go to Solution.
‎08-30-2016 05:44 PM
‎08-31-2016 06:09 PM
‎08-30-2016 05:48 PM
‎08-30-2016 05:44 PM
‎08-26-2016 07:15 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
T1.Found,
T1.FilePathfull,
T1.FileVersion
From (Select Top 100000 tblFileVersions.AssetID,
tblFileVersions.Found,
tblFileVersions.FilePathfull,
tblFileVersions.FileVersion,
(Case
When Len(tblFileVersions.FileVersion) > 0 And
tblFileVersions.FileVersion Not Like '%[A-Za-z]%' Then Cast('/' +
tblFileVersions.FileVersion + '/' As HIERARCHYID)
Else Cast('/0/' As HIERARCHYID) End) As ConvertedVersion
From tblFileVersions) T1
Inner Join tblAssets On tblAssets.AssetID = T1.AssetID
Where T1.ConvertedVersion > Cast('/5/' As HIERARCHYID)
‎08-24-2016 04:56 PM
Where (tblFileVersions.FileVersion Like N'6.0%' And
tblFileVersions.FilePathfull Like '%powershell.exe' And
tblFileVersions.Found = 'TRUE' And tblComputersystem.Domainrole > 1) Or
(tblFileVersions.FileVersion Like N'6.1%' And tblFileVersions.FilePathfull
Like '%powershell.exe' And tblFileVersions.Found = 'TRUE' And
tblComputersystem.Domainrole > 1) Or
(tblFileVersions.FileVersion Like N'6.2%' And tblFileVersions.FilePathfull
Like '%powershell.exe' And tblFileVersions.Found = 'TRUE' And
tblComputersystem.Domainrole > 1)
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now