Re: DOS Printing from Windows Server 2003 TS?



TEST,
Thanks for the clarification. If this works for them I am indebted to you.

I tried it on my local LAN and it worked great. I ran NET USE LPT2
\\STAT-NT03\BrotherH.

STAT-NT03 is the TS server name.
BrotheH is the sharename of the Printer on the Server and also on my client
machine.

And, when I logged off and then back on again, the Share Name persisted. I
am amazed.

We will see if it works for the 5 remote users over the Internet. I would
suppose that the user is given a different Terminal Server session each
time, like TS001, TS005, etc.

But maybe the Share Name persists because the Server recognizes the
combination of the Client machine name plus the Printer Name (or Share
Name).

Thanks again...

<TEST@xxxxxxxx> wrote in message
news:u77RrpCZIHA.1204@xxxxxxxxxxxxxxxxxxxxxxx
Sorry for my bad expression they wont have to do that everytime just once
on the server itself and you will have to to it not them


"John Kotuby" <JohnKotuby@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit dans le
message de news: eSCKVTCZIHA.1212@xxxxxxxxxxxxxxxxxxxxxxx
Thanks for the tip. Our program can use LPT1 thru LPT9
I will pass it on.

I wish there was a way to automatically set the sharename of the TS
printer upon connection. I can't see the 5 remote users doing that
everytime they connect.

<TEST@xxxxxxxx> wrote in message
news:ub0uvyBZIHA.4860@xxxxxxxxxxxxxxxxxxxxxxx
Wich port does your application needs to print to LPT1 or LPT2 because
on TS2003 you wont be able to print to LPT1 if you are not an
administrator.
here what i had to do to make it work is on the client machine share my
printer then on the TS machine when the printer is reconized put the
same share name on that printer manually then i use my script to map my
printers to that shared name


"John Kotuby" <johnk@xxxxxxxxxxxxx> a écrit dans le message de news:
u6h6GuAZIHA.600@xxxxxxxxxxxxxxxxxxxxxxx
Hi all,
I need some help please.
We have a customer who is still using and old DOS version of software
that we suppy to them and still support (even though I am encouraging
them to move to the Windows version).

They have a number of users that work from home. Up until a little
while ago they were using Win2000 terminal Services and had no trouble
printing remotely from DOS. Our DOS program, much like MS DOS Edit, can
print to ports LPT1 - LPTn.

They were using LPT2 without problem on Win2000.

Now their tech support consultant has called and asked me for help. I
could not find anything except a Kixstart script. I am not familair
with Kixstart but did my best to get it to work without success.

I see that the script looks to the Registry and grabs the correct
Default printer from HK_Current_User and then tries to use NET USE to
re-direct LPT2 to the TS printer.

Can anyone help me with this problem?

BTW... the reason they won't upgrade to our Windows version is that
they are a relatively small company and have closed an office to save
money and our Windows version costs more per seat. So any expensive 3rd
party solution will probably not work for them.

I am a software developer familair with VB and DOS scripting. Can a VBS
script be used during Login?

Actually I am hoping for an easier solution, as I am neck deep in a
programming project at the moment.

Any help would be appreciated...










.



Relevant Pages

  • Re: DOS Printing from Windows Server 2003 TS?
    ... Whatever script he is using causes our program to crash now when trying to ... I was able to print from the TS DOS via LPT2 to my local printer. ... TS Session printer is. ... Since they have 5 remote users, ...
    (microsoft.public.windows.terminal_services)
  • PHP and remote execution
    ... not been fix that allows execution of code on the hosting server. ... he installed a DoS client and initiated 2 DoS ... so this clued us in that it was a rather local attack. ... was not launched via an interactive web script. ...
    (Security-Basics)
  • Re: Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
    (perl.beginners)
  • Re: Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script Runs perfectly fine from the command prompt. ... # This is the main Apache HTTP server configuration file. ... LoadModule actions_module modules/mod_actions.so ...
    (perl.beginners)
  • Same Internal Server Error from last two days
    ... I am trying to run a Hello World Perl Script in Apache 2.2. ... But its constantly giving me Internal Server Error.The script ... # have to place corresponding `LoadModule' lines at this location so the ...
    (perl.beginners)