bat做网络驱动时报错Multiple connections to a server or shared resource by the same user

有时会报这样的错:
The mapped network drive could not be created because the following error 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.

这是因为在远程连接时,用了不同的两个用户名所致:解决办法如下:

  1. 打开cmd,在管理员模式下输入net use
  2. 找到list里面可能冲突的driver
  3. 输入net use /delete \\服务器名称\文件夹名称,将其删除
  4. net use再次检查
  5. 映射驱动较多的时候不知道是哪个,或者有时候有“隐身”driver,只好net use * /delete删除所有driver。(删除全部之前要确保没有其他driver正在被使用)

 

posted @ 2023-01-17 09:38  巴拉拉没多少能量  阅读(281)  评论(0编辑  收藏  举报