• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 425
  • Last Modified:

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
1 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now