Solved

2008 Remote Desktop Default Printer

Posted on 2011-09-06
3
979 Views
Last Modified: 2012-05-12
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
Comment
Question by:Minot
  • 2
3 Comments
 
LVL 4

Accepted Solution

by:
HostOne earned 500 total points
ID: 36494351
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
 

Author Comment

by:Minot
ID: 36494842
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
 

Author Closing Comment

by:Minot
ID: 37594618
Solution worked, thanks.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Like many organizations, your foray into cloud computing may have started with an ancillary or security service, like email spam and virus protection. For some, the first or second step into the cloud was moving email off-premise. For others, a clou…
Let’s list some of the technologies that enable smooth teleworking. 
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question