-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我使用这段代码 报panic: http response error: 401 - invalid content type 账号密码 都是正确的 #137
Comments
https://learn.microsoft.com/zh-cn/windows/win32/winrm/authentication-for-remote-connections 或者用户处于管理员组 administrators |
有没有解决? |
并没有解决 |
我这边使用的确实是adminstrator 管理员 但是还是报401 |
It's probably because the server requires NTLM authentication - I have a PR in to implement this in this repo but this seems to be not very active you could use https://github.com/CalypsoSys/bobwinrm see https://github.com/CalypsoSys/bobwinrmntlm for usage |
func main() {
endpoint := winrm.NewEndpoint("host", 5985, false, false, nil, nil, nil, 0)
}
The text was updated successfully, but these errors were encountered: