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")