adding printers HELP!

F

fred

ok i have had it, i still cant figure out how to add
network printers to a machine through a batch file. i have
done my research and have found what i need(its right in
front of me http://support.microsoft.com/default.aspx?
scid=http://support.microsoft.com:80/support/kb/articles/Q1
89/1/05.ASP&NoWebContent=1 OR I HAVE TRIED rundll32
printui.dll,PrintUIEntry /? ), but im msut bee an idot!
someone please help. what is wrong with this and where do
i add the server name that the printers are on???

rundll32 printui.dll,PrintUIEntry /if /b "printer name" /f
%windir%\inf\ntprint.inf /r "IP_127.0.0.1" /m "HP Laserjet
2100" /Z
 
G

gmk

This format is actually meant for adding "local"
printers. It's confusing, because you're printing to what
looks like an IP port (pointing at loopback??), which is
fine so long as the port is configured to point at either
a) the shared printer UNC, or b) the network-capable
printer's IP address or DNS name.

The reason to use this format for network printers is to
install the driver locally, and/or support standard
TCP/IP printing.

You also need to make sure the port exists (I do a
registry import to accomplish this, then restart the
spooler to enable the port) and is configured to point at
the right location. This is entirely separate from the
below command, and will cause the command to fail
silently otherwise.

If you have a windows print server with the correct
drivers available, all you have to do to load it is
access it, e.g. "start \\server\printersharename".


GMK.
 
D

David Wang [Msft]

I assume there is a network printer located at:
\\server\printer1

(requires admin privileges)
rundll32 printui.dll,PrintUIEntry /if /b "printer name" /f
%windir%\inf\ntprint.inf /r \\server\printer1 /m "HP Laserjet
2100" /Z

(A normal "User" can do this)
RUNDLL32 PrintUI.dll,PrintUIEntry /in /c "friendly printer name" /n
\\server\printer1


I understand your frustration at this syntax -- it is absolutely bizarre.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
ok i have had it, i still cant figure out how to add
network printers to a machine through a batch file. i have
done my research and have found what i need(its right in
front of me http://support.microsoft.com/default.aspx?
scid=http://support.microsoft.com:80/support/kb/articles/Q1
89/1/05.ASP&NoWebContent=1 OR I HAVE TRIED rundll32
printui.dll,PrintUIEntry /? ), but im msut bee an idot!
someone please help. what is wrong with this and where do
i add the server name that the printers are on???

rundll32 printui.dll,PrintUIEntry /if /b "printer name" /f
%windir%\inf\ntprint.inf /r "IP_127.0.0.1" /m "HP Laserjet
2100" /Z
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top