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
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
Changing "Computer" and "Network" icons in explorer navigation pane
Does anybody know how I can change these icons? I changed the default icon for the network one in HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C} but it didn't change. Appreciate any help, B
Customization
"copy this network profile to a usb flash drive" not working
when i clicked on it, nothing happened...
Network & Sharing
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
Redirected "My Documents" folder, on shared network drive - can't see
Hi all, I'm having a weird issue with one computer here. The "My Documents" folder is redirected to a shared network drive. Other people can access the files in that folder and edit them. The weird thing is that the "local copy" of the file does not seem to match the one the other users on...
Network & Sharing
Unable to view network drive, only "users" folder
Hi, I recently upgraded windows 7 onto both my laptop and desktop PC's. Initially, when I viewed the network tab in explorer, it used to bring up a list of my computers, of which I could then pick one, expand the list and see the corresponsing drives attached. Today, I (stupidly) set up a...
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 08:37.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App