Re: Remote Printing from a DOS app

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Frank McCallister (anonymous)
Date: 09/12/04


Date: Sun, 12 Sep 2004 11:02:53 -0500

Hi Cláudio

I had an unanswered question which I used a workaround by printing to file.
It sounds like you may know the answer so I will repeat it here if you don't
object.

I have a member server running TS on SBS. The TS has a DOS program which is
required for the customers operation. One WS using this program is local and
the other two are remote offices. The TS has a USB printer attached which
works fine for all Windows apps. I am able to use the net use Lpt1:
\\tserver\printername /persistent:yes command to enable printing in this
program from the console but this fails from the local WS unless I make the
WS user a Domain Admin on the SBS. Is there a way to make the net use
command apply to all users regardless of their rights or if they are power
users?

On the remote site net use Lpt2: \\remotecomputer\printername
/persistent:yes fails with error that command cannot find remotecomputer.
Can a DOS program print to a remote site computer in terminal services?
Windows programs print to the remote computer fine.

Frank McCallister
COMPUMAC

"Cláudio Rodrigues" <Claudio.Rodrigues@NOSPAM-Terminal-Services.NET> wrote
in message news:%23cd%23YD%23lEHA.1672@TK2MSFTNGP14.phx.gbl...
> When you connect to the TS, a printer is autocreated within your TS
> session. If you share the autocreated printer and map it using a NET USE
> LTP1: command, the DOS apps will be able to print with no problems.
> I even wrote a script to do that automatically as the session ID changes
> every single time a session is opened on the TS. Check my forums at
> http://forums.terminal-services.net.
>
>
> --
> Cláudio Rodrigues
>
> Microsoft MVP
> Windows Technologies - Terminal Services
> http://www.terminal-services.net
> "B. Horstmanshof" <wheeezer@optonline.net> wrote in message
> news:%23pisxH4lEHA.3536@TK2MSFTNGP12.phx.gbl...
>>I have a terminal server (Win2k with SP4) that includes a DOS application.
>> The program prints to LPT1, LPT2 and LPT3. On the local network, this is
>> not
>> a problem. However, I cannot get remote sessions to print.
>> I am able to print from any windows application.
>>
>> Is there a solution or work around to this problem, or am I just out of
>> luck?
>>
>>
>
>



Relevant Pages

  • RE: Spying, admin to user login?, Is it possible?
    ... shadow session could not be created directly on Windows XP computer. ... you could active only one user session at one time ... you need to remote desktop to a Windows 2003 ... Microsoft also publishes a KB to describe this work around in detail. ...
    (microsoft.public.windows.server.sbs)
  • Re: who flags on OSR5
    ... logged in user with command: ... On a box with about 220 users, all but 5 remote in terms of being not within ... Checking a few other smaller boxes shows almost the same thing. ... Sometimes my own ssh session shows up, sometimes nothing at all is retruned ...
    (comp.unix.sco.misc)
  • Re: executing from command line
    ... if fact it's a way to run a command remotely. ... >> I have a perl script that i would like to run it on a windows server. ... >opening up a security hole on the remote machine when you do this. ...
    (comp.lang.perl.misc)
  • Re: Linux cant see my Windows machine
    ... The good news is that I finally got the printing to work on the remote windows ... computer printer using the command line prompts you and others suggested to me. ...
    (comp.os.linux.security)
  • Re: Terminal Server Printing Scripts
    ... You can execute the command interactively at the command prompt, ... MCSE, CCEA, Microsoft MVP - Terminal Server ... This works however I want to just have a return of the Session ... I have them working fine under "Windows Printing" with the ...
    (microsoft.public.windows.terminal_services)