Net Use Password Error

jstevens
GoldLounger
Posts: 2618
Joined: 26 Jan 2010, 16:31
Location: Southern California

Net Use Password Error

Post by jstevens »

I have been using "Net Use" to map a network drive from the command line.

It recently stopped working and is now informing me that the password is incorrect. The password has not changed. I can use File Explorer to successfully map the drive manually but not using a command line.

Example:
net use Y: \\192.168.1.10\SomeFolder /user:john MyPassword /persistent:No

Your thoughts are appreciated.
Regards,
John

User avatar
StuartR
Administrator
Posts: 12577
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Net Use Password Error

Post by StuartR »

I have seen errors like this when there is another drive mapped to the same computer using a variant on the name or IP address, for example if you have one drive mapped as \\192.168.1.10\somefolder and another mapped as \\computername\different-folder

Try rebooting the computer where you are issuing the NET USE command and see if that fixes it
StuartR


jstevens
GoldLounger
Posts: 2618
Joined: 26 Jan 2010, 16:31
Location: Southern California

Re: Net Use Password Error

Post by jstevens »

Stuart,

I was able to get it to work by modifing the command line (added the IP address for the user account):

net use Y: \\192.168.1.10\SomeFolder /user:192.168.1.10\john MyPassword /persistent:No

Thanks for responding.
Regards,
John

User avatar
StuartR
Administrator
Posts: 12577
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Net Use Password Error

Post by StuartR »

Interesting. I've not had to do that before
StuartR