Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Our company has grown significantly recently and adding printers seperatly for each user is getting painful. Is there a way to add network printers automatically? Maybe through a login script or Group Policy? We have all Win XP SP2 machines and Win 2k SP4 servers.
Thank you

Build a group called Printers. Add each new user to that group. Set the security settings on the printer for the group.
As each new user comes onto the network, they only be needed to the Printers group to access the printer.
Larry
"Sometimes I lie awake at night, and I ask, 'Where have I gone wrong?' Then a voice says to me, 'This is going to take more than one night.'"
Charlie Brown.

I use con2prt.exe
If you do a web search on this program you will get enough info to get you up and running.

Mike, do you have a sample script that does this?
I'll look into the con2prt.exe.
Thank you all for your help.

here is the text to my vbs. obviously you'll substitute your server name and printer name.
Dim net
Set net = CreateObject("WScript.Network")
net.AddWindowsPrinterConnection "\\train\Audit_BP"
net.AddWindowsPrinterConnection "\\train\Audit_trio"
net.AddWindowsPrinterConnection "\\train\Audit_BP"
net.AddWindowsPrinterConnection "\\train\FDA_Cannon"
net.AddWindowsPrinterConnection "\\train\Financial_PL"
net.AddWindowsPrinterConnection "\\train\Mortgage"
net.AddWindowsPrinterConnection "\\train\Tax_BP"
net.AddWindowsPrinterConnection "\\train\Tax_canon"
net.AddWindowsPrinterConnection "\\train\Tax_Duo"
net.AddWindowsPrinterConnection "\\train\TAX_Super"
net.AddWindowsPrinterConnection "\\train\FD_Color"
net.AddWindowsPrinterConnection "\\train\dungeon"
net.AddWindowsPrinterConnection "\\buzzsaw\Fileroom_Sharp"
net.AddWindowsPrinterConnection "\\buzzsaw\Audit_LibraryPCL"

Mike - That's perfect, thank you.
Do you by chance know how to set one of those to the default printer?

I dont know if you can do that via script or not. I havent tried since I use the same script for all users and they are in so many locations that each user defines their own default. You may be able to d it, if so let me know the command for future reference

Mike,
Thanks again for your help.
Here is how you do it all, delete, add, set deafault...Dim net
Set net = CreateObject("WScript.Network")
net.RemovePrinterConnection "\\servername\printername"
net.AddWindowsPrinterConnection "\\servername\printername"
net.SetDefaultPrinter "\\servername\printername"

wouldnt that kinda be a pain though? to create a specific script for each user (I have a couple hundred so you can see how long that could take)?

It's not for each user, it's for each printer. And you can do it in two seperate scripts... so add the printers with one script (that way if there are any changes you only have to change it in one place).
Then set the default in a second script...Put the users in OU's by printer locations and then the setdefault script runs in seperate GP's for all users in that OU). So there's an OU for each printer with all the nearby users in that OU, and there's a seperate setdefault script for each OU.
So the logon script is a .bat file that calls the two vbs files as follows...SharedNetworkdrive\Printers\addallprinters.vbs
SharedNetworkdrive\Printers\150\setprinterdefault150.vbsThat way it waits to add the printers before trying to set the default. The initial setup is somewhat of a pain, but then it's easy from there.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |