Solved

Setting Local Default Terminal Services Printer

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…

914 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

19 Experts available now in Live!

Get 1:1 Help Now