where to supply password for user1 in logonscript

Posted on 2006-04-30
Last Modified: 2010-04-18
Could anyone let us know where to supply the password in the following statement?

net use e: \\appsvr\D$ /user:appsvr\user1

Question by:mei_liu
    LVL 30

    Expert Comment

    Use this

    net use x: \\server\share /user:username *

    Where * = password

    LVL 95

    Expert Comment

    by:Lee W, MVP
    Why are you trying to connect to an administrative share in a logon script?

    This is not the correct way of doing things.

    If you need to, reshare the root as something else, then you won't need to administratively connect
    LVL 77

    Accepted Solution

    net  use  e:  \\appsvr\D$  password   /user:domainame\user1
    net  use  e:  \\appsvr\D$  password   /

    I agree I wouldn't share the root


    Author Comment

    Both Leew and RobWill have a very valid point. This is a ts enviornment, and we have some customized code that uses drive E:\ on the old app server. When we moved the application to a new TS server, we couldn't customize it since we don't have the source code, but we needed to map d: to e: which would make our application to work properly.

    Since RobWill's statement works, we will give him the points.

    Thanks all!
    LVL 95

    Expert Comment

    by:Lee W, MVP
    Why not just use SUBST instead of mapping back to a drive?
    LVL 77

    Expert Comment

    by:Rob Williams
    Thanks mei_liu,

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
    ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    779 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

    21 Experts available now in Live!

    Get 1:1 Help Now