cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Hatteland
Engaged Sweeper
First of all, great product. Gives me lots of information and controll over my networked servers :d/

Some strange behavior, when i scan a computer and the info gets populated into the InfoFinder DB just some of the local printers get listed.

An example on lets call it SomeServer;
url; default.aspx?comp=SomeServer&maindet=hardware&item=hardware&subdet=Printers&title=Hardware : Printer

Output;
Win2PDF PDFFILE: 26.01.2010
pdfFactory Pro FPP2: 26.01.2010
Microsoft XPS Document Writer XPSPort: 26.01.2010
Microsoft Office Document Image Writer Microsoft Document Imaging Writer Port: 26.01.2010


But, there are more printers and when i run i vb script like this;
strComputer = "SomeServer"
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colPrinters = objWMIService.ExecQuery("Select * From Win32_Printer")
For Each objPrinter in colPrinters
If objPrinter.Attributes And 64 Then
strPrinterType = "Local"
Else
strPrinterType = "Network"
End If
Wscript.Echo objPrinter.Name & " -- " & strPrinterType
Next


The output contains all local printers like this;
Z:\>cscript ListPrinters.vbs
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Zetafax Printer -- Local
Win2PDF -- Local
pdfFactory Pro -- Local
Microsoft XPS Document Writer -- Local
Microsoft Office Document Image Writer -- Local
Mamut Virtual Printer 5 -- Local
Mamut Virtual Printer 4 -- Local
KSDPDFPRINTER -- Local


So the question, where and why has the printer-information gone
7 REPLIES 7
Hemoco
Lansweeper Alumni
Lansweeper uses the same wmi query as provided in the sample script, my guess is that at the time of scan the domain administrator is logged on interactively.
rkotvis
Engaged Sweeper
In november last year I've deployed a number of new printers, using the Printer Group Policy Preference Extension (with Security Group filtering). That worked like a charm, but none of these printers show up on the Printer tab of the configuration browser. When I add the printers using the "Add Printer" wizard they do show up... I guess that means Windows stores information about installed printers differently depending on the method of deployment.
Roelof Kotvis Bouwvereniging "Woningbelang" LinkedIn Profile
Hemoco
Lansweeper Alumni
All result fields from "Select * From Win32_Printer"
Hemoco
Lansweeper Alumni
Could you output all fields please
Lansweeper wrote:
Could you output all fields please

All fields from where?
Hatteland
Engaged Sweeper
The same user (Domain Admin) is running both scans.
Hemoco
Lansweeper Alumni
Could it be that the local printers only exist for the user that you use to run the script and not for the user performing the scan?