Net Use Question

  • Thread starter Thread starter pvong
  • Start date Start date
P

pvong

Guest
I have a simple Workgroup at home and all I want to do is share a drive.

Primary computer is set up with

Login: phil

Password:123

IP 192.168.60.155

Shared Name: e

Drive I want: E:



I want to set this up so it will auto login every time from my other

computer. This is what I used.



net use e: \\192.168.60.155\e password:123 /User:phil /Persistent:Yes



It tells me the password is bad.



If I just use:

net use e: \\192.168.60.155\e /user:phil



It then prompts me for the pw and i just type in 123 and everything works.



How do you get it to take the password?



Thanks!
 
From: "pvong"



| I have a simple Workgroup at home and all I want to do is share a drive.

| Primary computer is set up with

| Login: phil

| Password:123

| IP 192.168.60.155

| Shared Name: e

| Drive I want: E:



| I want to set this up so it will auto login every time from my other

| computer. This is what I used.



| net use e: \\192.168.60.155\e password:123 /User:phil /Persistent:Yes



| It tells me the password is bad.



| If I just use:

| net use e: \\192.168.60.155\e /user:phil



| It then prompts me for the pw and i just type in 123 and everything works.



| How do you get it to take the password?



| Thanks!





It would be easier if both platforms used the same named account with the same password.



--

Dave

http://www.claymania.com/removal-trojan-adware.html

Multi-AV - http://www.pctipp.ch/downloads/dl/35905.asp
 
"pvong" said this in news item

news:O#IOJ1tpKHA.3792@TK2MSFTNGP06.phx.gbl...

> I have a simple Workgroup at home and all I want to do is share a drive.

> Primary computer is set up with

> Login: phil

> Password:123

> IP 192.168.60.155

> Shared Name: e

> Drive I want: E:

>

> I want to set this up so it will auto login every time from my other

> computer. This is what I used.

>

> net use e: \\192.168.60.155\e password:123 /User:phil /Persistent:Yes

>

> It tells me the password is bad.

>

> If I just use:

> net use e: \\192.168.60.155\e /user:phil

>

> It then prompts me for the pw and i just type in 123 and everything works.

>

> How do you get it to take the password?

>

> Thanks!

>




This is because your syntax is incorrect. Instead of writing

net use e: \\192.168.60.155\e password:123 /User:phil /Persistent:Yes

you should write

net use e: \\192.168.60.155\e 123 /User:phil /Persistent:Yes

or even better

net use e: \\192.168.60.155\e /User:phil 123

because the password usually follows the user's name and because the

Persistent directive needs to be issued just once. In fact it makes no sense

having /persistent:yes since you use a batch file to map your shares.

/persistent:no would be more appropriate.



>
 
"pvong" wrote in message

news:O%23IOJ1tpKHA.3792@TK2MSFTNGP06.phx.gbl...

>I have a simple Workgroup at home and all I want to do is share a drive.

>Primary computer is set up with

> Login: phil

> Password:123

> IP 192.168.60.155

> Shared Name: e

> Drive I want: E:

>

> I want to set this up so it will auto login every time from my other

> computer. This is what I used.

>

> net use e: \\192.168.60.155\e password:123 /User:phil /Persistent:Yes

>

> It tells me the password is bad.

>

> If I just use:

> net use e: \\192.168.60.155\e /user:phil

>

> It then prompts me for the pw and i just type in 123 and everything works.

>

> How do you get it to take the password?

>

> Thanks!

>

>


Shouldn't the command be:

net use e: \\192.168.60.155\e 123 /User:phil /Persistent:Yes



Jim
 
"pvong" wrote in message

news:O#IOJ1tpKHA.3792@TK2MSFTNGP06.phx.gbl...

> I have a simple Workgroup at home and all I want to do is share a drive.

> Primary computer is set up with

> Login: phil

> Password:123

> IP 192.168.60.155

> Shared Name: e

> Drive I want: E:

>

> I want to set this up so it will auto login every time from my other

> computer. This is what I used.

>

> net use e: \\192.168.60.155\e password:123 /User:phil /Persistent:Yes

>

> It tells me the password is bad.

>

> If I just use:

> net use e: \\192.168.60.155\e /user:phil

>

> It then prompts me for the pw and i just type in 123 and everything works.

>

> How do you get it to take the password?

>

> Thanks!

>

>




Others have given the instructions to map the drive using net use.



Now one question... is this a laptop or portable computer that may be

removed from the network and used some where else? If not disregard the

rest.



If so you do not want a persistent map of that drive. The reason: if you

are away from the network and attempt to use most Office programs they will

hang for a long time while the OS is attempting to find the unattached

mapped drive. It's a pain but the fix is to ensure that you have an un-map

drive and a map drive batch file that you can run from the desktop or to

ensure that the map drive batch file uses the /persistent:no switch. That

way every time you turn on the computer the drive won't be mapped until you

run the map batch file.



If the computer is only temporarily removed but most of the time you have it

on the network then you should have the net use command all the time

starting from the Start menu but also have an un-map batch file for when you

walk away from the network (NET USE E: /DELETE) to alleviate the Office

program hang.
 
Back
Top