Adding Printers To Users at First login without user interaction

  • Thread starter Thread starter Brandon
  • Start date Start date
B

Brandon

Hello All,
I'm a sysadmin with the following problem,I have a win2k
domain with AD and an OU=NEWS AND CURRENT AFFAIRS i want
to have all the members of the NCA have two printer in
their available printers list at logon, my problem is i
dont know how to do it.. i've refered to KB189105 but no
luck..
 
Bear with me, I normally ask for help on these
newsgroups, not give it, but If you are talking about
win2k/3k and XP machines only the best way to do what you
want (I think) is to use a logon script and invoke
rundll32. The line in the logon script would look
something like this:

rundll32 printui.dll,PrintUIEntry /in /n
\\servername\printersharename

This is nice because it will even install the printer
driver if it doesn't exist. Other options are:

/q is quiet mode (no errors)
/y sets printer as default

to delete a connection:
rundll32 printui.dll,PrintUIEntry /dn /n <printer name>

Enter rundll32 printui.dll,PrintUIEntry /?
for a list of possible switches; note that PrintUIEntry
is case sensitive.

Good luck,
Manuel
 
You can use the follow Logon Script within a GPO aslo.

Set WshNetwork =
CreateObject("WScript.Network")WshNetwork.AddWindowsPrinterConnection
"\\PrintServer1\Xerox300"
WshNetwork.SetDefaultPrinter "\\PrintServer1\Xerox300"
 
Back
Top