
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2010 11:04 AM
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;
But, there are more printers and when i run i vb script like this;
The output contains all local printers like this;
So the question, where and why has the printer-information gone
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

Labels:
- Labels:
-
Archive
7 REPLIES 7

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2010 12:53 PM
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2010 12:48 PM
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2010 12:25 PM
All result fields from "Select * From Win32_Printer"

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2010 11:17 AM
Could you output all fields please

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2010 11:46 AM
Lansweeper wrote:
Could you output all fields please
All fields from where?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2010 11:11 AM
The same user (Domain Admin) is running both scans.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2010 11:09 AM
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?
