cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Nick_VDB
Champion Sweeper III
Added in v.6.0.100

The report below lists all the assets and the deployments that have occurred on them.

The report will only list assets that meet all of the following criteria:
  • The asset state is set to "active".
  • The asset has been successfully scanned at least once.
  • The has been at least one deployment executed on the asset.


Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.Username,
tblAssets.Userdomain,
Coalesce(tsysOS.Image, tsysAssetTypes.AssetTypeIcon10) As icon,
tblAssets.IPAddress,
tsysIPLocations.IPLocation,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tsysOS.OSname As OS,
tblAssets.SP,
tsysPackageLogs.Added As LogDate,
tsysPackages.PackageName As Package,
Case tsysPackageLogs.Success When 0 Then 'No' When 1 Then 'Yes'
End As DeploySuccess,
tsysPackageLogs.Executor,
tsysPackageLogs.Errorcode As [Return],
tsysPackageLogs.LastStepID As LastStep,
Case tsysPackageLogs.RunMode When 1 Then 'System Account'
When 2 Then 'Scanning Credentials' When 3 Then 'Currently Logged On'
End As RunMode,
tsysPackageLogs.Errormessage As Message,
tsysPackageLogs.ServerName As ScanningServer,
tsysPackageLogs.Version As DeployerVersion,
Case tsysPackageLogs.Success When 0 Then 'red' End As foregroundcolor
From tsysPackageLogs
Inner Join tblAssets On tsysPackageLogs.AssetID = tblAssets.AssetID
Inner Join tsysPackages On tsysPackageLogs.PackageID = tsysPackages.PackageID
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tsysIPLocations On tsysIPLocations.LocationID =
tblAssets.LocationID
Inner Join tblState On tblState.State = tblAssetCustom.State
Left Join tsysOS On tsysOS.OScode = tblAssets.OScode
Where tblState.Statename = 'Active'
Order By LogDate Desc,
tblAssets.Domain,
tblAssets.AssetName
0 REPLIES 0