• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 452
  • Last Modified:

Net Use Command

I am attempting to use the net use command on a Windows 7 PC.  After entering the net use syntax that I want to use to map a printer to LPT1 it prompts me for a user name and password for this machine.  Does it want the local administrator user and password or my Windows logon credentials.  Or the domain administrator credentials.  If have tried my Windows credentials and the domain administrators credentials and access is denied.  Any ideas?  Thanks!
0
submarinerssbn731
Asked:
submarinerssbn731
4 Solutions
 
submarinerssbn731Author Commented:
It also gives me a system error 5.  Then access denied.
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
It wants the user name and password for a user that machine knows is authorized to connect to it.  If you're getting that, then most likely the printer is shared with restrictive permissions OR either sharing computer or your computer is not a part of the domain as it's unable to authenticate you as being a valid user of that printer?

Think of it like this, when you use that command, the computer with the share is asking you for proof that you are someone who is allowed to use the printer.
0
 
X_layerCommented:
Do you have any physical LPT ports on the Windows computer? If so, please disable them. That should resolve this issue.

If it does not help, please let us know how does it work if you manually run the “net use” command to map LPT 2.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
Gerwin Jansen, EE MVETopic Advisor Commented:
Can you try the net use command from an elevated command prompt? Right-click cmd.exe in the start menu and choose 'Run as administrator'.
0
 
submarinerssbn731Author Commented:
The printer is connected to LPT1 on the computer that I am attempting to use the net use command.  I do this because I have a label making application on this computer which is linked to a VB module in an network linked Access database.  When I print the label from the Access database the database uses that net use path to print the label on the printer on the local machine.
0
 
johnb6767Commented:
Use any credentials that have the proper rights on the remote machine,  and be sure to use an elevated cmd prompt, by rt clicking/run as administrator.
0
 
submarinerssbn731Author Commented:
Good answers!  Thanks!
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now