Solved

2008 Remote Desktop Default Printer

Posted on 2011-09-06
3
981 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This article explains how to install and use the NTBackup utility that comes with Windows Server.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

729 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