Syntax For Mapping Printers Using Batch File

Posted on 2008-11-07
Last Modified: 2012-05-05
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
Question by:akdreaming
    1 Comment
    LVL 37

    Accepted Solution

    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:

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Causes of paper jams:The following are the main causes of paper jams. Guides:If the guides for the paper are not set correctly they may cause the paper to enter at an angle. You should ensure that the guides are set correctly for the paper type a…
    Printers have changed substantially in the last 30 or so years, not just in technical capabilities but in cost and usage as well.  Printers were originally used for interfacing with the operator, not necessarily for printing copy or pictures. In …
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now