I was wondering if there is a way to query a computer on the network and check to see what printers are install for the current logged on user. Currently I am using the following with mixed results:
Set objWMIService = GetObject("winmgmts:\\" & COMPUTERNAME & "\root\cimv2")
Set colPrinter = objWMIService.ExecQuery("Select * from Win32_Printer")
For Each objPrinter in colPrinter
strHTML = strHTML & objPrinter.caption & "<br>"
Next
This will provide me with locally installed printers and sometimes (very few) network installed printers. I want to be able to always find out all the computers the user has installed.
Thanks.
Set objWMIService = GetObject("winmgmts:\\" & COMPUTERNAME & "\root\cimv2")
Set colPrinter = objWMIService.ExecQuery("Select * from Win32_Printer")
For Each objPrinter in colPrinter
strHTML = strHTML & objPrinter.caption & "<br>"
Next
This will provide me with locally installed printers and sometimes (very few) network installed printers. I want to be able to always find out all the computers the user has installed.
Thanks.