Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Mapping a network drive using "net use" command?

24 May 2012   #1

Windows 7 64
 
 
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 System SpecsSystem Spec
.

24 May 2012   #2

Windows 7 Ult, Windows 8.1 Pro,
 
 

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 System SpecsSystem Spec
24 May 2012   #3

Windows 7 64
 
 

Quote   Quote: Originally Posted by chev65 View Post
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 System SpecsSystem Spec
.


Reply

 Mapping a network drive using "net use" command?




Thread Tools




Our Sites

Site Links

About Us

Find 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 09:45 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33