Solved

Batch file to add network printer

Posted on 2011-02-15
8
1,567 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
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

When I recently replaced my image transfer kit on my office HP color laserjet 5550dn printer, I had a slight problem.  The left bracket that holds the transfer kit got stuck in the upright locked position instead of being at a 45 degree angle facing…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 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

12 Experts available now in Live!

Get 1:1 Help Now