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
pulgoki

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
chev65

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
pulgoki

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




Similar help and support threads
Thread Forum
"the drive or network connection that the short cut "lnk" unavail"....
Hi, so currently i have a problem, every time i click on a launcher this message appears "The drive or network connection that the shortcut 'Planetside 2.lnk' refers to is unavailable. Make sure that the disk is properly inserted or the network resource is available, and then try again". (please...
Drivers
"Desktop As Shortcut" Command Is Missing from the "Send To" Menu
Can anyone help me with this ? i got a picture ... i cant sendto desktop as shortcut the icon is missing .. help !!:cry:
Customization
"Copy" command in command prompt generates 0x1a artifact?
Hello Everybody! I don't know if this is a real issue, or just one of those "What the . . . .!!" situations. You judge. Situation: I was working on a batch file that combines two .txt (ASCII?) files created in Notepad to create a composite file, and I noticed something really interesting. ...
Software
Run "cmd.exe" as a given user and "as administrator" in command line
Hello and thank you for reading my post. If I'm logged in Windows as user "u1", I can execute "cmd.exe" "as administrator" by choosing "Start" -> "cmd.exe" and right-click "Run as administrator".I would like to start another "cmd.exe" console as "u2" and "as administrator". (So, "u2" is not...
General Discussion
Mapping folder without turning on "Sharing"
Hello everyone, I'd like to share my music folder on my data drive with another user on the same home network. My preferable method would be to map the network drive folder on the other user, while keeping "Sharing" off on the folder. This is to prevent other users from accessing the music...
Network & Sharing


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 07:10.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App