|
Question : Network printer install. Group policy / Login script
|
|
I'm at a School. There are 25 PC's in the lab. They have 2 x Win2k servers. Each class room has 3 PC's. Misc. staff around the building each have their own PC.
I want to accomplish the following with out walking around to each PC: A) Install a new network printer on all of the lab PC's and make the new printer the default printer. B) Install the printer on all of the other PC's, but keep their current default printer.
What is the best way to do this?
|
Answer : Network printer install. Group policy / Login script
|
|
There are several ways to add printers. I have provided a simple batch file and instructions below (copy of an earlier post of mine), or you can use the rundll32 command, or Visual Basic Scripts, or Registry entries. I find the one below simple and allows you to specify whether it is to be the default printer or not. In your case you would want to add some filtering lines to the batch file such as if a member of a group or if the computer name included......for example make default printer if 1st 3 letters of the computer name were LAB. Do your lab computers have common naming format? If so I could add the necessary line/s to the batch file. Have a look below and see if this is some use to you and advise if you want it modified. --Rob ************************************ I have used a script/batch file similar to below to add printers. I usually add it to the logon script, which of course could be applied through the Group policy.
Download con2prt.exe which is part of the Microsoft Administration kit available here: http://www.microsoft.com/ntworkstation/downloads/Recommended/Featured/NTZAK.asp Or just the con2prt.exe file here: http://www3.ns.sympatico.ca/malagash/Downloads/Printers/con2prt.exe
Copy con2prt.exe to the Netlogon share of your server. (default location of logon scripts) C:\Windows\SYSVOL\sysvol\YourDomainName\scripts You need the exact name of the printer share, log on to that workstation or server and enter Net Share at a command line if you do not know it. If the share name has spaces you will have to enclose it with " " . If you are not familiar with batch files copy the text to notepad to edit and then save as something like LogOn.bat and again put in your Netlogon share folder on the server.
The lines starting with :: are comment lines and will be ignored or you can remove.
-------------------------------------------------------------------------------- :: You need to download con2prt.exe, :: Copy to the NetLogOn server share - the default directory for the logon batch files :: replace SrvrName with the name of the server with the Netlogon share :: Netlogon share is located on the server in C:\Windows\SYSVOL\sysvol\YourDomainName\Scripts
:: If at some point you wish to delete all printers enable the following line by removing the Rem Rem \\SrvrName\Netlogon\con2prt.exe /f
:: Install the default printer :: replace WkstName with the name of the server or workstation the to which the printer is connected :: replace Printer#x with the exact share name or the printer on the workstation :: Note if the share contains spaces surround it with quotations e.g. "\\WkStn1\HP Laser" \\SrvrName\Netlogon\con2prt.exe /cd \\WkstName\Printer1
:: Install other printers -You can add as many as you like \\SrvrName\Netlogon\con2prt.exe /c \\WkstName\Printer2 \\SrvrName\Netlogon\con2prt.exe /c \\WkstName\Printer3
|
|
|
|