Win 2003 R2 setup. I can push the printer via group policy, and pushprinterconnections.exe, but the printer isn't set as the default printer. Any ideas on how to set the default printer for an XP box via group policy?
Win 2003 R2 setup. I can push the printer via group policy, and pushprinterconnections.exe, but the printer isn't set as the default printer. Any ideas on how to set the default printer for an XP box via group policy?
In the past I've done this using a startup script.
Using wscript:
Taken from this link
In your comment on this answer you mention an issue with timing. On our systems I call the script that sets default printers by adding the script under
User Configuration - Templates - System/Logon - Run Programs at Logon
The programs under 'run programs at logon' happen after the profile is done loading, and after windows explorer has started. I am not 100% certain that this will deal with the timing issue in all cases, but it works for me.
This is a surprisingly annoying problem to solve. The first problem is that the default printer setting is user specific. The second problem like you noted in your comment to Jimmie is that even with a per-user login script, there are timing issues where the printer doesn't technically exist yet or the HKCU hive hasn't finished loading.
What we ended up doing in our situation is basically using a login script that loops looking for the printer to exist before it tries to set it as default. If it can't find it after a certain amount of time, it just gives up.
We have school districts using R2 printing deployment for labs. To combat this left out function from R2 we use Kixtart to help. This will help is you deploy printers for users in specific labs. This will also provide the delay needed to wait for windows to add the printer.
Labs have a naming convention. HS101-01, HS101-02, HS102-01, HS102-02, etc
Using a kixtart startup script from a Group Policy Object we have kix32.exe execute this script below.
I hope this will help. Thanks.