jonnyknowsbest
Technical User
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
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