Solved

Setting Local Default Terminal Services Printer

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Remote Access to a Windows 2000 Computer 2 512
Norton Ghost for Windows NT 5 1,515
Software to report on NTFS folder permissions? 2 497
Retrieve process time in memory in VB 6 130
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…
Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

713 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