We help IT Professionals succeed at work.
Get Started

how to print from DOS app in Terminal Services Remote Desktop

centralcity
centralcity asked
on
308 Views
Last Modified: 2008-01-09
I'm running a DOS app in a remote desktop using Terminal Services on Win 2003 server.
In order to print from the app, I have to share the printer, then go into a command window (or use a batch file) to map LPT1 to the printer using the "net use" command. In order to issue the "net use" the account has to have administrator privileges. If I then log off, then back on I find that the printer is listed a "unavailable" when I issue a net use command. The only way I've found to restore the printer is to delete, then reinstall the mapping.

I've looked for a way to give this authority to someone other than an administrator, but haven't been able to find it.

Is there a better way to tackle this problem and is there any way to give the authority to capture the printer port with "net use" other than by giving the user administrator privileges.

(BTW, when try to issue the net use command to capture the port with a non-administrator account, I get the message:
The password is invalid for \\server\lj1100
Enter the username for server:
I enter the username of an administrator, then I am asked for password, which I enter. Then I receive the following message "System error 5 has occured. Access is denied")



Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE