Solved

2008 Remote Desktop Default Printer

Posted on 2011-09-06
3
973 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

In this article, I'll explain how to setup a Plex Media Server (https://plex.tv/) on a Redhat (Centos) 7 based NAS with screenshots to help those looking for assistance.  What is Plex? If you aren't familiar with Plex, it’s a DLNA media serv…
Let’s list some of the technologies that enable smooth teleworking. 
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now