?
Solved

Net use command prompting for a username and password

Posted on 2005-04-07
4
Medium Priority
?
4,125 Views
Last Modified: 2012-05-05
We've got a dos based program that we use to print reports from.  The program prints to LPT1 and we've got an XP machine that we are using as a print server.  The same XP machine is also used by our shipping/receiving clerk.  She is a member of our domain and has to login in each morning with her username angela, password:*****.

When I use the net use command in dos to capture the printer port, it prompts me for a username and password.  Here, I have to enter username: angela and password:***** to be able to capture the printer port.

I'm using the /persistent:yes command which tells dos to keep this mapping even after rebooting which it does, but it's not keeping the username and password entries.

Is there another way to capture the printer port without having to enter a username and password or does anyone know how to write a batch file that I can run at startup to capture the printer port and enter the username and password automatically?

Thanks in advance for any help!!!
0
Comment
Question by:jeffmsas
  • 2
  • 2
4 Comments
 
LVL 2

Expert Comment

by:chris_bol
ID: 13727697
try this

net use whatever you use here /user:angela password
0
 

Author Comment

by:jeffmsas
ID: 13727811
Doing something wrong.  I'm getting a system error 1326 (login failure: unknown username or bad password.  Here's what I'm using:

net use lpt1: \\print_2\fujitsu /persistent:yes /user:angela password:angelaf

Is this correct?
0
 
LVL 2

Accepted Solution

by:
chris_bol earned 1000 total points
ID: 13727899
sorry, where I had put password you just need to put the password in.  
0
 

Author Comment

by:jeffmsas
ID: 13727929
Sweet.  That worked!!!  Thanks a ton for the help!!!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month13 days, 13 hours left to enroll

755 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