Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

win32_printer not reporting on a shared printer

Status
Not open for further replies.

jonnyknowsbest

Technical User
Feb 3, 2004
163
GB
I am using the following snippet of code to get a list of printers installed on a remote computer:

Set colInstalledPrinters = objWMIService.ExecQuery ("Select * from Win32_Printer")
For Each objPrinter in colInstalledPrinters
msgbox objPrinter.Name
Next

The remote computer has 2 printers installed, one is an IPP printer (prints to an http port) and the other is a shared printer (i.e. the printer is directly connected via USB to another computer).

When i execute my vbscript, i get a messagebox for the IPP printer, but that's it. It is like it is ignoring the shared printer.

Can anyone suggest what needs to be done to enumerate the shared printer?

Thanks in advance

Jonathan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top