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.
Net Use Password Error
-
- GoldLounger
- Posts: 2631
- Joined: 26 Jan 2010, 16:31
- Location: Southern California
Net Use Password Error
Regards,
John
John
-
- Administrator
- Posts: 12629
- Joined: 16 Jan 2010, 15:49
- Location: London, Europe
Re: Net Use Password Error
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
Try rebooting the computer where you are issuing the NET USE command and see if that fixes it
StuartR
-
- GoldLounger
- Posts: 2631
- Joined: 26 Jan 2010, 16:31
- Location: Southern California
Re: Net Use Password Error
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.
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
John
-
- Administrator
- Posts: 12629
- Joined: 16 Jan 2010, 15:49
- Location: London, Europe