Solved

Setting Local Default Terminal Services Printer

Posted on 2004-09-23
4
474 Views
Last Modified: 2010-04-13
Setting Local Default Terminal Services Printer

I have 2 local printer attached to my machine, LPT2= Sharp printer   LPT3= HP Laserjet.  When I connect into my windows 2000 terminal server,  The HP is ALWAYS the default printer.  I can change the default to the Sharp printer, but after signing out of TS and then going back in, the default printer is the HP again.  

I found the following article http://www.experts-exchange.com/Operating_Systems/Win2000/Q_20948035.html which is helpful, but The full printer name can potentially change every time I log on.

Here is the command that I was toying with in a login script:  

rundll32 printui.dll,PrintUIEntry /y /n "Sharp/computername/session"


Both the computername and session# are variables  There are about 5 different workstations that will be logging on and up to 10 different sessions on the terminal server.  That would be about 50 combinations?

There is probably an easier way of doing this, please help.
0
Comment
Question by:LohInc
[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
4 Comments
 
LVL 17

Accepted Solution

by:
Eagle6990 earned 250 total points
ID: 12146595
What is the default printer on your local machine? The Sharp or the HP?  I believe TS will use your local default printer as it's default, although most of our users only have one printer at home.
0
 

Author Comment

by:LohInc
ID: 12148187
This is one small office that has a number of computer stations connected to 2 printers.  They do quite a bit of work via Terminal Services.  The 2 printers, sharp and HP 2100 are installed on the local area network as network printers, however, Terminal service does not recognize network printers, so, I have installed the Sharp network copier to LPT2 and the HP2100 to LPT3.

I then run a batch file:  

net use Lpt2 \\server\sharp
net use LPT3 \\server\HP2100

Now both printers appear to be local and terminal services is happy.   I will try setting the LPT redirected printer as a default and then connecting in to TS.
0
 

Author Comment

by:LohInc
ID: 12218311
You are correct in saying that TS will use your local default printer as its default printer as well.  However, in my scenario if local workstation has a lan printer as its default printer.  Terminal Services will not connect it in the session and therefore choose its own Default printer.

If I set the redirected local printer as the default, TS is happy and the Default printer is chosen correcly.   That is what I will do for now.
0
 

Expert Comment

by:angeljr-datacorps
ID: 25127487
I have the same issue as the originating poster above, the local default printer (lan printer with it's own I.P) on the host does not always set itself as the default on the terminal service and the script listed will not always work due to the "in session" portion changing randomly when they logon.

Unlike Lohinc I cannot set the locally connected printer as the default as it is a an expensive to use label printer and the user cannot be trusted to check the default printer before they print every day.

0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
In this article, I’ll talk about multi-threaded slave statistics printed in MySQL error log file.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

621 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