![为什么使用正确的凭据后 net rpc shutdown 仍会失败?](https://linux22.com/image/1230525/%E4%B8%BA%E4%BB%80%E4%B9%88%E4%BD%BF%E7%94%A8%E6%AD%A3%E7%A1%AE%E7%9A%84%E5%87%AD%E6%8D%AE%E5%90%8E%20net%20rpc%20shutdown%20%E4%BB%8D%E4%BC%9A%E5%A4%B1%E8%B4%A5%EF%BC%9F.png)
命令
$ net rpc SHUTDOWN -f -I xxx.xxx.xxx.xxx -U uname%psswd
失败并出现以下错误:
Could not connect to server xxx.xxx.xxx.xxx
The username or password was not correct.
Connection failed: NT_STATUS_LOGON_FAILURE
Could not connect to server xxx.xxx.xxx.xxx
The username or password was not correct.
Connection failed: NT_STATUS_LOGON_FAILURE
当凭证绝对正确时。发生了什么事?
答案1
通过以下方式禁用远程主机上的简单文件共享:
My Computer > Tools > Folder Options > View
并取消选中simple file sharing
还可以在防火墙上打相应的洞,方法是
Control Panel > Security Center > Windows Firewall > Exceptions
并检查“文件和打印机共享”
还检查Advanced tab > ICMP Settings
“允许传入回显请求”
更多信息这里。
答案2
如果您的用户名是这样的domain\uname
,请尝试将其更改为domain/uname
(即将 更改\
为/
)