Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Setting Local Default Terminal Services Printer

Posted on 2004-09-23
4
Medium Priority
?
475 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 750 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

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, WatchGuard's Director of Security Strategy and Research Teri Radichel, takes a look at insider threats, the risk they can pose to your organization, and the best ways to defend against them.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

721 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