Question : auto attach network printer on active directory

I would like to be able to add a network printer to everyone that has an active directory, roaming prifile on the server. I don't want to have to login to each user and attach the printer, is there a way I can do multiple users at once?

Answer : auto attach network printer on active directory

Create a Visual Basic Script that connects the printer, like this:

ServerName="YourServerName"
PrinterSharedName = "HP2200"
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\" & ServerName & "\" & PrinterSharedName

You can then do two things:
A) Copy this script at \\\c$\windows\SYSVOL\domain\scripts, and Go to active directory users and computers, and edit each user properties the "logon script" and enter the name of the logon script.
B) Create a policy in a OU containing the roaming users and edit the User Configuration -> Windows Configuration -> Logon Script , and insert the name and path of the new created script.

Every time that user logs in the system, the printer will be created (and if is still created will do nothing)
Random Solutions  
 
programming4us programming4us