Adding Printers via logon script

G

Guest

Hello,

I have recently setup a print server in Win2k AD, and I am currently in the
process of adding printers to groups via a logon script. I am successfull in
adding the printers, however I can not seem to find out how to set one of the
printers as a default printer. In addition, is it possible to add a script
to be run so the printers would be added to worstations rather than users?

Thanks in advance!
Vince
 
S

Simon Geary

If you add your printers with printui.dll you can choose which printer is
set as the default printer. This will probably also work for the existing
printers added by other methods. This kb explains how to do it
http://support.microsoft.com/kb/314486

To add printers to computers rather than users, just assign the script as a
computer startup script in Group Policy instead of a user logon script.
 
G

Guest

Thanks for the info, unfortunatley I can not seem to find anything which will
designate a printer as the default. In most cases, I will be adding several
printers in each logon script, and this is definitely a sticking point.

--Vince
 
S

Simon Geary

Run this from a command line

rundll32 printui.dll,PrintUIEntry /?

It shows the options for printui.dll. /y is used to set the default printer.
 
G

Guest

Thanks Simon, works great! Running into a couple errors with the startup
script for workstations, but I'm working through them.

Thanks again!
 

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

Similar Threads


Top