[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 987
  • Last Modified:

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?
0
Minot
Asked:
Minot
  • 2
1 Solution
 
HostOneCommented:
You can configure the default printer via group policy, based on user or computer (as this is RDS, you will need to use by user). Go to the GPO and then users settings, then the preferences option (the second tree - new in 2008, did not exist in 2003). In here there is an option "windows settings" and an option "control panel settings". Choose control panel settings. In here you will see printers.

Click on printers then right click and add new printer (shared or tcp or local). When you have made the printer, ensure you select the action type as replace. Fill in the printer details in the path and then go to the "common" tab on the new printer. In here, tick the box that says "Remove this item when it no longer applied".

Then tick "item level targeting" and click on targeting. In the new window, click "new item" and assign this printer to members of a group (which you will have already made - I should have mentioned above. Make groups for people who need the printers).  This will only give this printer to people who are in the group.

In the main window, there is a tick box to make it a default printer or not. You could try using loopback processing in the GPO to apply it based on the uses machine name?

That may work for you, if you know where users should be in relation to printers. If users move around drastically and you really need to know the machine they're on, can you set the default printer on their local PC and let Microsoft Easy Print just maintain their existing defaults?
0
 
MinotAuthor Commented:
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.  
0
 
MinotAuthor Commented:
Solution worked, thanks.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now