Dos command for adding a printer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

Does anyone know the DOS command for adding a share printer? I want to run
this command as a batch file in group policy for users when they connect to
the network.

Thanks
 
See http://members.shaw.ca/bsanders/NetPrinterAllUsers.htm. This is a way
to add a Network printer "globally" to a computer so that all users will
have it available automatically. I find this more effective than adding
Network printers in a logon script, although there are options on the
rundll32 printui,PrintUIEntry command that could be used for that (use
rundll32 printui,PrintUIEntry /? to get the "help" information).

Also, for Windows XP clients, there is a set of scripts that can be invoked
from a command file for manipulating printers - see
http://members.shaw.ca/bsanders/Printer Scripts.htm
 
Sam:

Do you mean the command "net use lpt1: \\server_name\shared_printer_name"?
Make sure to share the printer ("shared_printer_name") first (in Control
Panel --> Printers --> Add Printer).

-KCP
 
Back
Top