Network Printer Deployment on Client using Logon Script in GPO

rpinto

Member
Joined
Aug 29, 2009
Messages
1
Hi Experts,

I have setup and installed the drivers for 'Samsung SCX-4300 Series' Printer on the windows server 2008 at work.

Done Sharing it.

I want to Deploy this printer automatically on any client(user) that's on the domain created on the server, when the user logs into his/her account.

I created a GPO for this, and in the User Configurations, Logon section, I included the following Script file.

I actually tried out two script files (one at a time ofcourse):

1) I created a .bat file and stored the following script in it

CSCRIPT C:\Windows\System32\Printing_Admin_Scripts\en-US\prnmngr.vbs -ac -p \Serv2K8\Samsung SCX-4300 Series

where Serv2k8 is my server name and Samsung SCX-4300 Series is my printer share name.

i tried login into a user on the domain but it didnt work. no printer was detected.

2) I created a vbs file with the following VBS script

'
' Printers.vbs - Windows Logon Script.
Set objNetwork = CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection "\\Serv2k8\Samsung SCX-4300 Series"

this script runs fine when i run it on the client. The printer is detected.

But when i include the sciprt in the Logon section on the server and login into the client, it doesnt work.

also, when i login on the admin on the server, i get an error stating that the vbs script has an error in it.

I need some help on this.

Can anyone shed some light on this?.. I believe my GPO setting is correct, but i'd appreciate it if somone can give me a step by step procedure of this.

Thanking YOu,

Regards,

Richard.
 
Back
Top