Solved

Setting Local Default Terminal Services Printer

Posted on 2004-09-23
4
466 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
  • 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
We have come a long way with backup and data protection — from backing up to floppies, external drives, CDs, Blu-ray, flash drives, SSD drives, and now to the cloud.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 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

10 Experts available now in Live!

Get 1:1 Help Now