AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1017872
Accepted
Jack
Jack
Asked: 2020-05-20 18:36:22 +0800 CST2020-05-20 18:36:22 +0800 CST 2020-05-20 18:36:22 +0800 CST

访问被拒绝 WinRM 错误代码 5

  • 772

我们正在尝试在我们的环境中设置 Windows 事件转发 (WEF),但遇到了一些问题。我们设置了一个 GPO(如下所示)以启用将事件转发到本地收集服务器,并且我们配置了连接服务器。收集器机器显示为已正确订阅,但我们正在测试的另一台机器未连接到收集服务器。

在无法转发日志的源机器上,我们在Application and Services Logs -> Microsoft -> Windows -> Eventlog ForwardingPlugin下看到以下错误

The forwarder is having a problem communicating with subscription manager at address 
http://Collector.corp.company.com:5985/wsman/SubscriptionManager/WEC.  
Error code is 5 and Error Message is 
<f:WSManFault xmlns:f="http://schemas.microsoft.com/wbem/wsman/1/wsmanfault" Code="5"
Machine="SourceMachine.corp.company.com"><f:Message>Access is denied. </f:Message></f:WSManFault>.

在收集器机器上,我们在Application and Services Logs -> Microsoft -> Windows -> Windows Remote Management -> Operational下看到以下错误

The authorization of the user failed with error 5

有关收集器服务器错误的更多详细信息:

Source: Windows Remote Managment
Event ID: 192
Level: Information       Task Category: User Authorization
User: Network Service    Keywords: Security,Server
OpCode: Informational    Computer: Collector.corp.company.com

正在申请的 GPO: 总局图像 1 总局图像 2 总局图像 3

windows group-policy windows-event-log winrm
  • 2 2 个回答
  • 9229 Views

2 个回答

  • Voted
  1. Best Answer
    Jack
    2020-05-25T15:15:52+08:002020-05-25T15:15:52+08:00

    好的,经过大量阅读和研究,我似乎发现了一些有用的东西。具体来说,问题在于正在使用的频道访问令牌。此令牌的值应为:

    O:BAG:SYD:(A;;0xf0007;;;SY)(A;;0x7;;;BA)(A;;0x1;;;BO)(A;;0x1;;;SO)(A;;0x1;;;S-1-5-32-573)(A;;0x1;;;S-1-5-20)
    

    应该为Computer Configuration -> Administrative Templates -> Windows Components -> Event Log Service -> Security设置此值。在我们的例子中,我在上面显示的注册表设置中使用了相同的值。

    关键是添加(A;;0x1;;;S-1-5-20)到末尾而不是(A;;0x1;;;NS)

    以下是我发现/用于使其正常工作的一些有用链接:

    • https://support.logbinder.com/SuperchargerKB/50119/3-Troubleshooting-a-Problem-Forwarder
    • https://forum.logbinder.com/Topic136-2.aspx
    • https://apps.nsa.gov/iaarchive/library/reports/spotting-the-adversary-with-windows-event-log-monitoring.cfm
    • https://github.com/ukncsc/lme

    希望这会帮助其他一些人,因为这对我们来说是一种痛苦。

    • 0
  2. Weegs
    2020-09-02T15:16:45+08:002020-09-02T15:16:45+08:00

    我们有完全相同的行为和错误消息(...失败并出现错误 5),但我们的解决方案是计算机配置 -> 管理模板 -> Windows 组件 -> Windows 远程管理 -> WinRM 服务 -> 允许远程服务器下的通配符通过 WinRM 管理。正如大多数文章中所述,我们只是在其中添加了一个星号 (*),并且已经运行了一年多,但在 2020 年 7 月的 Microsoft 补丁之后,它就停止了工作。我手动放入我们使用的子网并重新启动收集器上的 Winrm 服务,事情又开始流动了。

    • 0

相关问题

  • 知道任何适用于 Windows 的快速可编写脚本的 ftp 客户端吗?[关闭]

  • 如果 Windows 服务崩溃,如何自动重新启动它?

  • 无法安排任务(访问被拒绝)

  • 物理机重启时自动重启虚拟机(VMWare)

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve