Using EMI for remote printer info
From: Conic Ellipse (ConicEllipse_at_discussions.microsoft.com)
Date: 12/22/04
- Next message: Ray Costanzo [MVP]: "Re: just learning to use news on the Internet"
- Previous message: Clay Calvert: "Re: Losing IE proxy settings"
- Next in thread: Conic Ellipse: "RE: Using WMI for remote printer info"
- Reply: Conic Ellipse: "RE: Using WMI for remote printer info"
- Reply: Corné Bogaarts: "Re: Using EMI for remote printer info"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 22 Dec 2004 06:21:01 -0800
Howdy all. I used Scriptomatic to create a script that will show me all about
printers installed on a machine using WMI. The script works on my machine,
but when I try to use it on another workstation on my enterprise, I only get
information about 'software' printers on the machine and not the network
printers they have attached to them. Again, I can see the network printers
when I run it on mine, but not on theirs (by putting in their machine name in
place of the . for the strComputer name while running the script on my
computer.)
Remote servers actually show correct information. It appears to be just
workstations that are not working.
Any ideas on how I can correctly get the data from the 'remote' workstations?
Thanks, here's a snipet from the Scriptomatic:
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Printer",,48)
For Each objItem in colItems
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "DriverName: " & objItem.DriverName
Wscript.Echo "ShareName: " & objItem.ShareName
Next
If it matters, it is failing on remote machines using Windows 2000 up to SP4
AND Windows XP SP1 and 2.
-=Conic=-
- Next message: Ray Costanzo [MVP]: "Re: just learning to use news on the Internet"
- Previous message: Clay Calvert: "Re: Losing IE proxy settings"
- Next in thread: Conic Ellipse: "RE: Using WMI for remote printer info"
- Reply: Conic Ellipse: "RE: Using WMI for remote printer info"
- Reply: Corné Bogaarts: "Re: Using EMI for remote printer info"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|