Mapping a network drive using "net use" command?


  1. Posts : 14
    Windows 7 64
       #1

    Mapping a network drive using "net use" command?


    I need a little assistance.

    I am trying to create some batch files to connect to network drives. I am not understanding something.

    Code:
    net use x: \\myserver\c$\documents /USER:mydomain\login_name
    the /USER:mydomain, what do you enter in the mydomain location of you are not part of a domain?
      My Computer


  2. Posts : 8,870
    Windows 7 Ult, Windows 8.1 Pro,
       #2

    Here is what I get for this.
    domainname = Specify a different domain than the one you're on, assuming you're on one, with this option. Skip domainname if you're not on a domain or you want net use to use the one you're on already.

    From here.
    Net Use Command Details and Examples
      My Computer


  3. Posts : 14
    Windows 7 64
    Thread Starter
       #3

    chev65 said:
    Here is what I get for this.
    domainname = Specify a different domain than the one you're on, assuming you're on one, with this option. Skip domainname if you're not on a domain or you want net use to use the one you're on already.

    From here.
    Net Use Command Details and Examples
    Ive read that.. it still left me a bit confused. :) Sorry, im a bit of a newb.

    I also read another site that made it seem that you could replace the domain name with the computer name. I am not 100% sure of that however. I also do not understand the proper syntax of everything so,

    Would the command look like this?


    Code:
    net use x: \\myserver\c$\documents /USER:computer_name\login_name
    or if your are not using a computer name or domain name, like this

    Code:
    net use x: \\myserver\c$\documents /USER login_name
    This would be with password included. (using the example from the link) and stay connected ??

    Code:
    net use e: \\myserver\c$\documents  password /user login_name /savecred /p:yes
    Sorry for the ignorant questions...
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:04.
Find Us