Windows 无法通过winexe映射远程计算机上的驱动器
我试图使用ubuntu中的winexe程序在远程windows xp机器上映射网络共享,命令失败,错误如下 命令:Windows 无法通过winexe映射远程计算机上的驱动器,windows,winexe,Windows,Winexe,我试图使用ubuntu中的winexe程序在远程windows xp机器上映射网络共享,命令失败,错误如下 命令: ./bin/winexe -U Domain1/Administrator%paswrd123 //192.168.4.38 'cmd /c net use Q: \\192.168.4.16\Mydrive pwd123 /USER:user /P:yes' 错误: System error 1312 has occurred. A specified logon sessi
./bin/winexe -U Domain1/Administrator%paswrd123 //192.168.4.38 'cmd /c net use Q: \\192.168.4.16\Mydrive pwd123 /USER:user /P:yes'
错误:
System error 1312 has occurred.
A specified logon session does not exist. It may already have been terminated.
我转到远程系统登录并在本地运行netuse命令,共享驱动器映射成功
使用的命令:
net use Q: \\192.168.4.16\Mydrive pwd123 /USER:user /P:yes
我在谷歌上搜索过,人们对检查该命令的语法给出了建议,该命令的语法很好,在windows系统上本地运行时效果很好。在此方面的帮助将不胜感激
编辑:我在用户名部分输入了域名,如下所示,命令运行成功,但在远程计算机上找不到共享驱动器
./bin/winexe -U Domain1/Administrator%paswrd123 //192.168.4.38 'cmd /c net use Q:\\192.168.4.16\Mydrive pwd123 /USER:MUM\user /P:yes`'
The command completed successfully.
对于已编辑的查询,您可以使用此选项让NET选择一个空闲驱动器盘符,然后使用NET查找分配的盘符:
net use * \\server\share
for /f "tokens=2" %%i in ('net use ^| find "\\server\share"') do set netdrive=%%i
echo %netdrive% has been mapped
有关net use命令的详细信息,请参阅问题的接受答案映射的驱动器仅在重新启动后显示。但不是在命令执行之后。有相同的修复方法吗?