Mapping a network drive using "net use" command?

pulgoki

New member
Local time
7:17 AM
Messages
14
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

Computer Manufacturer/Model Number
Home Built
OS
Windows 7 64
CPU
intel i7-860
Motherboard
Asus P7P55B
Memory
OCZ DDR3 12800 8gig
Graphics Card(s)
EVGA GTS 250 1G
Sound Card
onboard
Monitor(s) Displays
Samsung Syncmaster
Hard Drives
WDC WD10EACS 1TB HDD
WDC WD5000AAKS 500g HDD
PSU
ThermalTake Pure Power 500W
Case
Antec Nine Hundred 2
Cooling
Stock cpu fan, 5 case fans.
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

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home built
OS
Windows 7 Ult, Windows 8.1 Pro,
CPU
Q9650-4.275GHz, E8600 4.5GHz, E6750-3.8GHz
Motherboard
Evga 780i FTW
Memory
G.Skill PC2 9600 1200Mhz 5 5 5 15 2T
Graphics Card(s)
GTX480
Sound Card
Asus Xonar D2
Monitor(s) Displays
HannsG
Screen Resolution
1680X1050
Hard Drives
GSkill Phoenix Pro 120GB SSD
PSU
ThermalTake Toughpower 1000Watt modular
Case
ThermalTake XaserV
Cooling
Xigmatek S1283
Keyboard
Logitech G15
Mouse
Logitech G9
Internet Speed
T1
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

Computer Manufacturer/Model Number
Home Built
OS
Windows 7 64
CPU
intel i7-860
Motherboard
Asus P7P55B
Memory
OCZ DDR3 12800 8gig
Graphics Card(s)
EVGA GTS 250 1G
Sound Card
onboard
Monitor(s) Displays
Samsung Syncmaster
Hard Drives
WDC WD10EACS 1TB HDD
WDC WD5000AAKS 500g HDD
PSU
ThermalTake Pure Power 500W
Case
Antec Nine Hundred 2
Cooling
Stock cpu fan, 5 case fans.
Back
Top