Please use the reports below for the information you are after. Instructions for running reports can be found
here. If you are interested in building or modifying reports, we would recommend:
- Reviewing some SQL tutorials, as the Lansweeper report builder uses standard SQL queries.
This seems like a good tutorial.
- Updating to Lansweeper 5.2, if you haven't already. Lansweeper 5.2 includes a database dictionary, which is linked at the top of the report builder.
Assets and users connected to a share:
Select Top 1000000 tblSharesUni.Caption,
tblSharesUni.Name,
tblSharesUni.Path,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Username,
tblAssets.Userdomain,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.Lastseen
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblShares On tblAssets.AssetID = tblShares.AssetID
Inner Join tblSharesUni On tblSharesUni.ShareUniqueID =
tblShares.ShareUniqueID
Where tblSharesUni.Path Like '%maillnet%' And tblAssetCustom.State = 1
Order By tblAssets.Username,
tblSharesUni.Name
Assets and usernames connected to a printer:
Select Top 1000000 tblPrinters.Caption,
tblPrinters.Portname,
tblPrinters.Sharename,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Username,
tblAssets.Userdomain,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.Lastseen
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblPrinters On tblAssets.AssetID = tblPrinters.AssetID
Where tblPrinters.Caption Like '%P1 Eng - Canon iR C5030%' And
tblAssetCustom.State = 1
Order By tblAssets.Username