→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎02-01-2016 12:31 PM
Solved! Go to Solution.
‎02-16-2016 08:48 PM
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
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Where tblAssets.AssetID Not In (Select Top 1000000 tsysPackageLogs.AssetID
From tsysPackageLogs Inner Join tsysPackages On tsysPackages.PackageID =
tsysPackageLogs.PackageID
Where tsysPackageLogs.Success = 1 And tsysPackages.PackageName Like
'%your package name %') And tblAssetCustom.State = 1
Order By tblAssets.Domain,
tblAssets.AssetName
‎02-16-2016 08:48 PM
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
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Where tblAssets.AssetID Not In (Select Top 1000000 tsysPackageLogs.AssetID
From tsysPackageLogs Inner Join tsysPackages On tsysPackages.PackageID =
tsysPackageLogs.PackageID
Where tsysPackageLogs.Success = 1 And tsysPackages.PackageName Like
'%your package name %') And tblAssetCustom.State = 1
Order By tblAssets.Domain,
tblAssets.AssetName
‎02-04-2016 05:07 PM
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.IPAddress,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblFileVersions.Found,
tblFileVersions.FilePathfull,
tblFileVersions.Filesize
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblFileVersions On tblAssets.AssetID = tblFileVersions.AssetID
Inner Join tblADComputers On tblAssets.AssetID = tblADComputers.AssetID
Where tblFileVersions.Found = 'False' And tblFileVersions.FilePathfull Like
'%PATH\TO\IMAGE.BMP' And tblFileVersions.Filesize = 'IMAGE SIZE' And
tblAssetCustom.State = 1 And tblADComputers.OU Like '%OU=YOURTARGETOU%'
‎02-03-2016 08:45 AM
Select Top 1000000 upgrade_tblComputers.Computer,
upgrade_tblComputers.LastknownIP,
upgrade_tblCompCustom.Custom6,
upgrade_tblCompCustom.Custom7,
upgrade_tblCompCustom.Custom8,
tblAssets.AssetID,
tsysOS.OSname,
tsysPackageLogs.Success,
tsysPackageLogs.Errorcode,
tsysPackageLogs.Destination,
tsysPackageLogs.Errormessage,
tsysPackageLogs.LastStepID
From upgrade_tblComputers
Left Outer Join upgrade_tblCompCustom On upgrade_tblComputers.Computername =
upgrade_tblCompCustom.Computername
Inner Join tblAssets On tblAssets.AssetID = upgrade_tblComputers.Computername
Inner Join tsysOS On tsysOS.OScode = tblAssets.OScode
Inner Join tsysPackageLogs On tblAssets.AssetID = tsysPackageLogs.AssetID
Where tsysOS.OSname = 'Win 7' And tsysPackageLogs.Success = 'False'
‎02-02-2016 09:48 PM
‎02-02-2016 08:31 AM
‎02-01-2016 05:14 PM
Select Top 1000000 pl.Added As [Log Date],
a.AssetName,
a.AssetID,
p.PackageName As Package,
p.PackageID,
pl.Executor As Executor,
pl.Errorcode As [Return],
pl.LastStepID As [Last Step],
Case When pl.RunMode = 1 Then 'System Account'
When pl.RunMode = 2 Then 'Scanning Credentials'
When pl.RunMode = 3 Then 'Currently Logged On' End As [Run Mode],
Case When pl.Success = 1 Then 'black' Else 'red' End As foregroundcolor,
Case When pl.Success = 1 Then 'tick.png' Else 'minus.png' End As icon,
pl.Errormessage As Message,
pl.Version As [Deployer Version]
From tsysPackageLogs pl
Left Outer Join tblAssets a On pl.AssetID = a.AssetID
Join tsysPackages p On pl.PackageID = p.PackageID
Where pl.ServerName = @Servername
Order By [Log Date] Desc
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now