Dou*_*ell 6 windows network-attached-storage network-share net-use windows-10
但是,我目前尚未连接到网络位置。
如果输入,net use我会得到以下输出:
>net use
New connections will not be remembered.
There are no entries in the list.
Run Code Online (Sandbox Code Playgroud)
当我去映射驱动器时,它要求提供两次凭据,然后第二次失败并显示以下消息:
指定的网络文件夹当前使用不同的用户名和密码进行映射。
如果我尝试net use在控制台中映射它,我会得到:
net use z: \\[location]\Data /user:[username] [password]
System error 1219 has occurred.
Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.
Run Code Online (Sandbox Code Playgroud)
没有连接,但是当我尝试映射驱动器时,它失败了,好像有连接一样。
事实证明,Windows 缓存了该位置的凭据。
去Control Panel > Credentials Manager
在下面Windows Credentials
删除已缓存网络共享凭据的帐户。立即尝试重新映射驱动器。
如果失败,您可以尝试:
net stop workstation /y
net start workstation
Run Code Online (Sandbox Code Playgroud)