The job of deploying printers and setting default printers has been quite simply a pain in the butt. Well automating the default printer has been anyway. Now if you are like me and work in an educational environment where there are computer labs, left right and center, libraries, staff notebooks (separated on different campuses), student notebooks etc etc and users all wanting to print to specific printers and of course people not wanting to select the correct one from a list of printers then read on.
Use Group Policy Preferences !!!
In the past I have used the Print Management Console to deploy the printers via Group Policy, now that did work very well, but there was still the “overlooked” problem of being able to set the default printer. To get around this what I used to do was to name the computers in a certain way and then have a vbs script that would get the name of the printer and then set the default based on the computer name.
I was reading an article by GPO Guru Derek Melber about the new Group Policy Preferences that come with Windows Server 2008 and Windows Vista and thought I would explore this option.
To start off your client will need the Group Policy Preference Client Side Extensions both XP and Vista Clients need these. Now you can manually download these and install via a computer startup script via Group Policy or if you have a WSUS Server then you can make this “Feature Pack” available via Windows Updates (this is the option I took, less work!).
Now that you have the Group Policy Preference Client Side Extensions installed on the clients, you can go ahead and play with the GPO’s. If you open up the Group Policy Management snap in and edit a GPO object you will see “Preferences”
After expanding “Preferences” you will notice an options there that says PRINTERS. If you right click on Printers and select New > Shared Printer, the New Shared Printer Dialog Box will appear.
From here we can enter in the path to the shared printer and from the Action drop down menu select “Create”, but the best part is that you can place a tick in the “Set this printer as the default printer” box and it will make that printer the default. Interesting thing to note here though is that this check box is only available under a User Configuration and not the Computer Configuration. This is not what I wanted, I need to set a default printer for computers in a specific room.
So what I have done in enable User Group Policy Loop Back Processing under the Computer Configuration > Policies > Admin Templates > System > Group Policy, you can either set that to Merge or Replace. Now what that does is enable you to apply User Configurations to users that log onto those computers that this policy applies to.
This is the Good Part
Once you have created a shared printer to deploy there is a tab on the properties of that called “Common” , if you click on that and place a tick in the “Item Level Targeting” and click on the Targeting Button a whole new world opens up!
Click on the New Item and just have a look at the possibilities there. The one I was interested in was the Organisational Units option. Because what I want to happen is if a computer is in a specific OU install and make printer X the default.
With this option I was able to achieve just that. Just select the OU that the Computer should belong to by using the Browse Button and select the Computer in OU radio box.
For More Tips on how you can use Group Policy Preferences make sure you SUBSCRIBE to my RSS Feed so you don’t miss out on making your life as a Network Administrator an easier one !!!