Computing.Net > Forums > Programming > Map all printers on a print server

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Map all printers on a print server

Reply to Message Icon

Name: niche
Date: September 17, 2007 at 11:30:48 Pacific
OS: XP
CPU/Ram: 3GHZ/2GB
Product: DELL
Comment:

I need help creating a VBScript that when ran on a PC will map all printers from an indicated printserver.

I already know how to add each printer individually but I need one that will automatically search the print server for shared printers and map them. Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: Rob.Wiese
Date: September 24, 2007 at 12:06:38 Pacific
Reply:


While this isnt the complete answer you are looking for:

rundll32 printui.dll,PrintUIEntry /id /ga /n\\%1\%2 /y

will add a printer. Parsing a net view \\<server> and looping through the Type Print shares will add your printers.

Rob


0
Reply to Message Icon

Related Posts

See More


Save Listbox data to txt ... running turbo c shuts dow...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Map all printers on a print server

IP Printer Script Not Working VBS www.computing.net/answers/programming/ip-printer-script-not-working-vbs/13139.html

Installing a Printer via Batch File www.computing.net/answers/programming/installing-a-printer-via-batch-file/17555.html

Know status of a printer from VB www.computing.net/answers/programming/know-status-of-a-printer-from-vb/1416.html