Active Directory automatically install printers

975 pts.
Tags:
Active Directory
Active Directory 2003
Active Directory Deployment
Print Server
Can we have active directory automatically install printers for used based on location of the user and printer? We have an Active Directory 2003 network and 2003 print servers.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Yes it can be done. But a simpler way may be to set up the print server role on a server that can a little extra work load and set up all of the printers there.

Then you can just map to the printers to clients. You can do this in a number of ways. The method being used where i work atm works very well (but don’t get that confused with good practice).

We have a print server with all of the printers setup over the LAN. We then use Group Policy to run a startup script which is just a vbs script adding network printers and setting them as default. Different scripts for different printers/ multiple printers can then be deployed at OU level or even users or WMI specific depending on how good you are with AD/GPM/GPO’s.

and example script is

‘ ———————————————————– ‘
Option Explicit
On Error Resume Next

‘ Adds new printer

Dim objNetwork, objPrinter
Set objNetwork = CreateObject(“WScript.Network”)
objNetwork.AddWindowsPrinterConnection “\PRINTSERVERNAMEHERE\PRINTERNAMEHER”
Set objNetwork = CreateObject(“WScript.Network”)
objNetwork.AddWindowsPrinterConnection “\\PRINTSERVERNAMEHERE\PRINTERNAMEHER”
Set objPrinter = CreateObject(“WScript.Network”)
objPrinter.SetDefaultPrinter “\\PRINTSERVERNAMEHERE\PRINTERNAMEHER”
WScript.Quit

Be careful though as there is no built in method for the windows environment to remove network attached printers automatically.

All you can use is a cscript utilising prnmngr.vbs found as standard in xp (will work on other windows versions)

This can be manipulated to remove all printers and then add in the local ones again (such as xps and pdf printers) to clean out the machine of print mapping that are incorrect.

This is a simple method that is hard to get wrong. There are other methods but I have not tried them yet.

Let me know if this helps.

EG

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TeachMeIT
    [...] 9. Is it possible for Active Directory to automatically install printers? [...]
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following