→ 🚀What's New? Join Us for the Fall Product Launch! Register Now !
‎07-09-2018 06:29 PM
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,
tblAssets.Lastseen,
tblAssets.Lasttried,
tblPrinters.Caption As Printer,
tblPrinters.Portname As PrinterPort,
tblPrinters.Printprocessor,
tblPrinters.Capabilitydescriptions As PrinterCapabilities,
tblPrinters.Lastchanged
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tblstate On tblstate.State = tblAssetCustom.State
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tsysIPLocations On tsysIPLocations.LocationID =
tblAssets.LocationID
Inner Join tblPrinters On tblAssets.AssetID = tblPrinters.AssetID
Left Join tsysOS On tblAssets.OScode = tsysOS.OScode
Where tblPrinters.Printprocessor <> 'WinPrint' And Case tblPrinters.Network
When 0 Then 'No' When 1 Then 'Yes'
End = 'Yes' And tblstate.Statename = 'Active'
Order By tblAssets.Domain,
tblAssets.AssetName,
Printer
‎07-20-2023 08:13 AM
If info is not collected then it is not problem of reporting...
‎07-19-2023 01:06 PM
We wrote some reports
Local-connected printers
Select Top 1000000 tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tblAssets.IPAddress,
tblAssets.Userdomain,
tblAssets.Username,
tblPrinters.Caption,
tblPrinters.Portname,
tblAssets.Firstseen,
tblAssets.Lastseen,
tblPrinters.Lastchanged,
tblPrinters.Status,
tblPrinters.Printprocessor
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.Portname Like 'USB%' Or tblPrinters.Portname Like 'LPT%' Or
tblPrinters.Portname Like 'COM%' Or tblPrinters.Portname Like 'DOT4%' Or
tblPrinters.Portname Like '%.%.%.%') And tblAssetCustom.State = 1
Order By tblAssets.AssetName
All Printers:
Select Top 1000000 tblAssets.AssetName,
tblAssets.Username,
tblAssets.Lastseen,
tblPrinters.*
From tblAssets
Inner Join tblPrinters On tblAssets.AssetID = tblPrinters.AssetID
Where Not tblPrinters.Portname Like 'PORTPROMPT:' And
Not tblPrinters.Caption Like '%XPS%' And Not tblPrinters.Caption Like '%Fax%'
And Not tblPrinters.Caption Like '%OneNote%' And
Not tblPrinters.Caption Like '%Document%' And Not Lower(tblPrinters.Caption)
Like '%pdf%' And Not Lower(tblPrinters.Portname) Like '%port:%'
Network Printer Connection:
Select Top 1000000 tblAssets1.AssetID,
tblAssets1.AssetName,
tblAssets1.IPAddress,
tblAssetCustom.Manufacturer,
tblAssetCustom.Model,
tblPrinters.Caption,
tblPrinters.Portname,
tblAssets.AssetName CompName,
tblAssets.IPAddress CompIP,
tblAssets.Username,
tblAssets.FQDN
From tblPrinters
Inner Join tblAssets On tblAssets.AssetID = tblPrinters.AssetID
Inner Join tblAssets As tblAssets1 On (tblPrinters.Portname Like '%' +
tblAssets1.IPAddress + '%' Or
tblPrinters.Portname Like tblAssets1.AssetName + '%' Or
tblAssets1.AssetName Like tblPrinters.Portname + '%' Or
tblAssets1.AssetName = tblPrinters.Portname)
Inner Join tblAssetCustom On tblAssets1.AssetID = tblAssetCustom.AssetID
Where tblAssets1.IPAddress <> '' And tblAssets1.Assettype = 16
Order By tblAssets1.AssetName
or if need then add fix domain name
Inner Join tblAssets As tblAssets1 On (tblPrinters.Portname Like '%' +
tblAssets1.IPAddress + '%' Or
tblPrinters.Portname Like tblAssets1.AssetName + '%domain_suffix' Or
tblAssets1.AssetName Like tblPrinters.Portname + '%domain_suffix' Or
tblAssets1.AssetName = tblPrinters.Portname)
‎07-19-2023 01:16 PM
TVM, but I don't think ANY of them give the printers mapped at the PC side. Which is what I am trying to gather... I'm not sure that LanSweeper gathers this info....
‎07-10-2018 05:27 PM
‎07-13-2018 07:39 AM
Charles.X wrote:
I think your report is still the original. You can find a copy of every report we have on the forum. The network printer report can be found here: https://www.lansweeper.com/forum/yaf_postst15179_Windows--Installed-network-printers--Built-in.aspx#post51429
The condition I was referred to filters out all printers which use Microsoft's default print processor. Usually printers install their own print processor when the driver is installed. However, since this might not be the case in your network, removing the line might show you the results you are looking for. If there is too much information, you can always look for other ways of filtering out unwanted information.
Where tblPrinters.Printprocessor <> 'WinPrint' And Case tblPrinters.Network
When 0 Then 'No' When 1 Then 'Yes'
End = 'Yes' And tblState.Statename = 'Active'
‎07-10-2018 10:42 AM
‎07-19-2023 11:27 AM
This report is also not working for me - I KNOW I have mapped network printers - e.g. my PC has several. BUT this report is showing nothing. There is also nothing (except
) in the PC properties/Device section. IF I remove the section mentioned above it just shows these printers (except it doesn't show cabin printer (a network printer mapped directly to my PC) and not the others mapped to my PC (e.g. :
)
Any ideas? TVM
‎07-10-2018 04:30 PM
Charles.X wrote:
In this case, Windows decides whether a printer is a Network printer or not. This property is store in the Win32_Printer WMI class, which is where Lansweeper retrieves the information from.
The most likely case why there is no information displayed is because of this condition: tblPrinters.Printprocessor <>
'WinPrint'
The information is stored tblPrinters, so you can always see if you can create a custom report which lists the devices you need.
‎07-10-2018 07:20 AM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now