Solved

Batch file to add network printer

Posted on 2011-02-15
8
1,585 Views
Last Modified: 2012-05-11
I used to have this batch file some time ago, but cannot find it anymore.  Unfortunately, i'm not working in the capacity as an an Enterprise Admin so i can not invoke GPO, this organization does not currently have a print Server or any server working in that capacity. So i would like to use a batch file and remotely place this under the all user Desktop so each user can simply click and install the appropriate printer within the batch file.  Any help on this would be greatly appreciated. OS: Vista and XP SPII
0
Comment
Question by:cgooden01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 5

Expert Comment

by:Noduzz
ID: 34901775
0
 

Author Comment

by:cgooden01
ID: 34901989
Thanks but i need you to be more explicit...I have already search the net quite abit on here and have found possible solutions.  Either by the use of what you sent to me via hyperlink and the such.  Reminder, we are not running a print server and this need to be able for the user with non admin rights to add the printer by its Host name instead of the IP which is dynamic.  
0
 

Accepted Solution

by:
gosfordit_support earned 84 total points
ID: 34902159
Hi CGOODEN01,

There are a few simple ways this can be done.
If the printer needs to be setup locally on a machine you can use the following within a command prompt:

net use LPT1 \\MyServer\MyPrinter

Where MyServer is the name of the computer that the printer is shared off of and MyPrinter is the windows share name of the printer you need installed.

Alternatively.

You can add a printer that is shared off of a machine via the following command:

rundll32 printui.dll,PrintUIEntry /il /c\\machine

Where 'machine' is the machine that the printer is shared off.

Hope this helps.
Nick
0
Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

 
LVL 7

Assisted Solution

by:TechnoChat
TechnoChat earned 83 total points
ID: 34923549
Try this attached script..
Hope it will help you out.
@echo off
set printer=\\SERVER\PRINTER
::ADDING PRINTER
rundll32 printui.dll,PrintUIEntry /in /q /n "%printer%"
::SET DEFAULT
rundll32 printui.dll,PrintUIEntry /y /n "%printer%"
exit

Open in new window

0
 
LVL 3

Assisted Solution

by:sam0x01
sam0x01 earned 83 total points
ID: 34991367
If you run a print server at all you could just run
\\serverhost\printshare

Open in new window


to map a single printer.

I suspect you could easily add this to a login script if you have access to this.
0
 
LVL 38

Expert Comment

by:hdhondt
ID: 35304420
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.
0

Featured Post

Don't Miss ATEN at InfoComm 2017!

Visit booth #2167 to see the  new ATEN VM3200 32 x 32 Modular Matrix Switch. Other highlights include the VE8950 4K HDMI Over IP Extender, VS1912 12-Port DP Video Wall Media Player  and VK2100 ATEN Control System. Register now with Free Pass Code ATEN288!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

728 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