Windows 7 Forums


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 Pro,
San Diego
 
 

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? problems?



Thread Tools



Similar help and support threads for: Mapping a network drive using "net use" command?
Thread Forum
Run "cmd.exe" as a given user and "as administrator" in command line General Discussion
Windows 7 "Endpoint Mapping" Error... Network & Sharing
Solved "Map Network Drive" menu item missing after hasty registry edit. Network & Sharing
Windows Image back fails "The disk is write protected" (network drive) Network & Sharing
Unable to view network drive, only "users" folder Network & Sharing


All times are GMT -5. The time now is 11:09 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

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
  

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