Adding Printers To Users at First login without user interaction

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..
 
M

Manuell Alvarez

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
 
C

Chriss3

You can use the follow Logon Script within a GPO aslo.

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

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