troubleshooting Question

Set Default Printer via GPO Logon Script

Avatar of sparky2156
sparky2156Flag for United Kingdom of Great Britain and Northern Ireland asked on
Windows Server 2003Active DirectoryMicrosoft Development
9 Comments1 Solution6966 ViewsLast Modified:
Hi,

Currently i am trying to resolve an issue with my printer setup on a windows 2003 network. The issue is that the printer has already been creatied, shared and added to all of the users profiles. However, a local setting on the machiens keeps changing the default printer back to the one which comes first alphabetically - which i dont want to happen.

I have done a lot of research into the topic, and it seems that the best solution is to create a vbs script which assigns the printer as default. I have the line of code which actually sets the printer to be default:

objNetwork.SetDefaultPrinter \\servername\printer

however, i am not a programmer and i am getting syntax errors when i add this line into a notepad and rename the file as a .vbs script and deploy it via gpo - as i expected.

Could somebody please advise me on the correct syntax for this file. Like i said, the printer has already been created and is in use - i just need to simply set the printer to be default.

Thanks.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros