Problem overview:
I built a file server using Windows Server 2012 r2 vl x64, but there was a problem when using it. There was always a problem with user login, and the message "A user is not allowed to use more than one user name for multiple connections to a server or shared resource." The reason for the occurrence is unknown, and no reasonable explanation can be found online.
Solution:
1. Restart the Workstation service
2. Use the command to delete the current link and reconnect it.
net use //View the bound cache
net use \shared IP folder path /delete //Clean the cache
net use y: \Shared IP folder path "password" /user:"account" Map the other party's c drive to your own y drive
Improve this method and make a share.bat file. If you have any problems, you can double-click this file to run the script. The code is as follows:
net use * /del /y
net use Y: \\shared IP\directory "password" /user:"user"
Just change the IP shared directory, user, and password to your own. Hereby record and share.