命令
$ 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
(即将 更改\
为/
)