我正在尝试从我的 Windows 7 客户端 PC 成功运行位于服务器 PC (Windows Server 2008 R2) 上的批处理文件。但它不起作用,命令提示符显示以下错误信息消息。
当我跑
psexec \\199.219.21.141 -u admin /c "C:\Compile.bat"
系统提示我输入密码,当我输入密码并按下时,我得到了
Make sure that the default admin$ share is enabled on 199.219.21.141
(这是我的机器IP地址)
用户admin是服务器计算机上本地管理员的一部分
我尝试过的事情,
- 关闭 UAC 关闭 Windows 防火墙
- 将LocalAccountTokenFilterPolicy DWORD 设置为 1 in, HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
- 使用缓存用户凭据
cmdkey.exe /add:MACHINE_NAME_HERE /user:199.219.21.141\admin /pass:PASSWORD_HERE psexec.exe \199.219.21.141 -i notepad cmdkey.exe /delete:199.219.21.141
尝试连接一段时间后,它再次显示
Make sure that the default admin$ share is enabled on 199.219.21.141
任何想法我做错了什么?