How can i export printer details from multiple 2003 servers

I have a large number of 2003 server and for a project i require information on all the printers hosted on all of them. main details needed will be the printer name and the location fiellds. can anyone help with getting all this data at once? or even something i can run on each server to output this data?
AlirithAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mark1208Commented:
Hi Alirith,

Something like the VBScript here should do the trick, and then some!
http://gallery.technet.microsoft.com/ScriptCenter/en-us/cddf9aef-839f-4405-8637-1c2d74522fd6

You might also take a look at Print Migrator 3.1 (replaced with PrintBrm in WS2008): http://www.microsoft.com/windowsserver2003/techinfo/overview/printmigrator3.1.mspx. Or, try using the Print Management snap-in
(http://support.microsoft.com/kb/938923)  from a Vista, Win7, or WS2008 client to remotely enumerate printers from a list of WS2003 servers.

Hope this helps (or at least gets you started)!
-Mark
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Joseph DalyCommented:
Are these printers shared through active directory? If so you should have a listing of them by doing find, and selecting the printers drop down.

Otherwise you can use the WMI query to return results. Save the code below as a VBS. As long as you have admin rights on the print server it should work for you.
strComputer = "printservername" 
strDomain = "domain.com" 
Wscript.StdOut.Write "Please enter your user name:"
strUser = Wscript.StdIn.ReadLine 
Set objPassword = CreateObject("ScriptPW.Password")
Wscript.StdOut.Write "Please enter your password:"
strPassword = objPassword.GetPassword()
Wscript.Echo

Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator") 
Set objWMIService = objSWbemLocator.ConnectServer(strComputer, _ 
    "root\CIMV2", _ 
    strUser, _ 
    strPassword, _ 
    "MS_409", _ 
    "ntlmdomain:" + strDomain) 
Set colItems = objWMIService.ExecQuery( _
    "SELECT * FROM Win32_Printer",,48) 
For Each objItem in colItems 
    Wscript.Echo "-----------------------------------"
    Wscript.Echo "Win32_Printer instance"
    Wscript.Echo "-----------------------------------"
    Wscript.Echo "Location: " & objItem.Location
    Wscript.Echo "Name: " & objItem.Name
    Wscript.Echo "PortName: " & objItem.PortName
    Wscript.Echo "ShareName: " & objItem.ShareName
Next

Open in new window

0
Joseph DalyCommented:
And actually an even easier way of doing this using the command line WMIC.


wmic /node:{printservername} printer get name, location, portname

Since this is just a windows command you can just pipe the output to a file >c:\output.txt
0
AlirithAuthor Commented:
Print manangement snap in was just what i needed!
even allows for future central management which will make life easier
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2003

From novice to tech pro — start learning today.