• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 427
  • 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:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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