Syntax For Mapping Printers Using Batch File

We map network drives using a batch file which our users in AD point to.  Simple batch file but it works for our needs and is simple to edit.  What is the syntax I could user to map printers using the same batch file?  Let me be clear, I want to add additional syntax to the batch file.  Below is how I'm currently mapping drives using this syntax in my batch file.  If I have a printer loaded on a Print server with the following FQDN, what would be my syntax I would add to the below drive mappings to map my printer?

Printer Name:  \\hp4200_gillam_ops

net use g: \\servername\dropbox
net use i: \\servername\file_server
net use n: \\servername\csnet
akdreamingAsked:
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.

hdhondtCommented:
If the printer is set up on the server, put this command in the batch file:

rundll32 printui.dll,PrintUIEntry /ga /c\\servername /n\\servername\hp4200_gillam_ops

For more details, see:
http://www.robvanderwoude.com/2kprintcontrol.html

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
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
Printers and Scanners

From novice to tech pro — start learning today.