Link to home
Start Free TrialLog in
Avatar of Minot
Minot

asked on

2008 Remote Desktop Default Printer

Hi,

I am in the process of upgrading an existing 2003 TS farm to 2008.  In 2008 I am using a vbs script to pull the client computer name and use it as a variable to set the default printer on the terminal server.  In 2003 this works without issue.  The syntax of the command is somewhat like this:

DIM WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
PrinterPath = "Medway"
WshNetwork.SetDefaultPrinter PrinterPath

Under 2008 this script will change the default printer provided that the current default printer is not redirected.  If the users printer is a redirected printer from the client machine the printer will not redirect.  This is a large issue as these machines are accessed in a hybird environment where if my script does not match a known workstaiton name we want to retain the redirected printer.  

Has anyone worked around this issue yet?
ASKER CERTIFIED SOLUTION
Avatar of David Cherny
David Cherny
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Minot
Minot

ASKER

The situation is a little more dynamic than I would like.  We have users who roam between offices and computers.  This is why I like the solution which uses the computer name as the basis for the default setting.  Additionally, the client side PC's are not domain members in many cases thus I am hesitant so start configuring and maintining settings on these PC's as they are not in our scope day to day.

I will review the printer preference again in GPO but on my last review I did not think that this would solve my issue at this site.  
Avatar of Minot

ASKER

Solution worked, thanks.