Batch file to map printers

Im trying to find a way to map multiple printers everytime someone logon on their computer and actually, I don't want to use a vbscript it has to be a .bat file... I got 3 printers, 10.0.0.230, 231 et 130. Anybody could help me ?

Thanks.
tblincAsked:
Who is Participating?
 
BigBadWolf_000Connect With a Mentor Commented:
net use LPT1: \\10.0.0.230 /persistent:yes
net use LPT2: \\10.0.0.231 /persistent:yes
net use LPT3: \\10.0.0.130 /persistent:yes
0
 
RGEIS2000Commented:
net use \\server\printer1
net use \\server\printer2
etc...
0
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.

 
hdhondtCommented:
KCTS's script will create the printer, but it will only work if the TCP/IP port already exists. To create the port in a script, use "cscript prnport.vbs". For details see:

http://technet.microsoft.com/en-us/library/bb490975.aspx
0
 
Jon DeVitoCommented:
Or adding this to a logon bat script will work:

cscript %systemroot%\system32\prnmngr.vbs -ac -p "\\SERVERNAME\SHARENAME"

I use this one on my network & it works pretty well.

Jon
0
 
tblincAuthor Commented:
Thanks.
0
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.

All Courses

From novice to tech pro — start learning today.