Hi,
let us assume we have an Network Share on Server myserver.mydomain.org. Server has IP Address 10.254.10.10.
accessing a share via IP Address works
1 2 3 4 | D:\> net use * \\10.254.10.10\myshare$ Drive Y: is now connected to \\10.254.10.10\myshare$. The command completed successfully. |
But accssing the share via Name or FDQN returns an error 2221
1 2 3 | D:\> net use * \\myserver.mydomain.org\myshare$ System error 2221. The user name could not be found The network connection could not be found |
This could occurred when Windows uses credentials from the Windows Vault/Credential store which are obsolete.
List all saved credentials
1 2 3 4 5 6 7 | D:\> cmdkey /list Currently stored credentials: Target: Domain:myserver.mydomain.org Type: Domain Password User: test |
Solution: Delete the entry and try again
1 2 | D:\> cmdkey /delete :myserver.mydomain.org CMDKEY: Credential deleted successfully. |
Michael