Error 1312 from net use when mapping samba share Error 1312 from net use when mapping samba share windows windows

Error 1312 from net use when mapping samba share


I have had the same issue some time ago. It helped when I introduced a domain name (even if you are not a domain member) before the login.I your case try this command:net use X: \\IP\share_name /user:whatEver\login password


Test this command:

EXEC XP_CMDSHELL 'net use Z: 192.168.3.55backupShare password@123 /User:domainuser'


I've just run into the same problem on upgrading to Windows 10 PE 2004 (19041). The older Windows 10 PE 1803 (17134) did not require the dot before the username.

Here's the solution:

  1. Put the password before the user (this is the argument order given by net use /?).
  2. Add the server's name, IP or a dot and then a backslash (.\) before the username .

Use:

net use X: \\IP\share_name password /user:.\login

or

net use X: \\IP\share_name password /user:IP\login

If you have arguments with spaces, add parenthesis around them:

net use X: "\\IP\share name" "pass word" /user:".\test user"