Solved

2008 Remote Desktop Default Printer

Posted on 2011-09-06
3
977 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 SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

773 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