我正在尝试使用 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 session does not exist. It may already have been terminated.
我去了远程系统登录并在本地运行 net use 命令,共享驱动器已成功映射。
使用的命令:
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.