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?
Who is Participating?

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

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.

Hi Alirith,

Something like the VBScript here should do the trick, and then some!

You might also take a look at Print Migrator 3.1 (replaced with PrintBrm in WS2008): Or, try using the Print Management snap-in
(  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)!

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 = "" 
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()

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

Open in new window

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
AlirithAuthor Commented:
Print manangement snap in was just what i needed!
even allows for future central management which will make life easier
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.