Net Use Command

Posted on 2011-10-25
Last Modified: 2012-05-12
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!
Question by:submarinerssbn731

    Author Comment

    It also gives me a system error 5.  Then access denied.
    LVL 95

    Accepted Solution

    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.
    LVL 11

    Assisted Solution

    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.
    LVL 37

    Assisted Solution

    by:Gerwin Jansen
    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'.

    Author Comment

    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.
    LVL 66

    Assisted Solution

    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.

    Author Closing Comment

    Good answers!  Thanks!

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Suggested Solutions

    If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
    OfficeMate Freezes on login or does not load after login credentials are input.
    This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
    This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

    732 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

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now