修复:WinRM客户端无法处理请求,因为订阅没有域或非域源
没有.
这个Windows错误发生在 Windows Event Collector (WEC) 服务当一个 Source-Initiated Subscription (Windows事件转发) 已创建,但其安全权限完全空白.
The service drops the connection because the subscription XML configuration lacks explicit definitions for which computers are allowed to forward logs. To protect the system, WinRM blocks the request 直到你告诉它哪些Active Directory域或非域 (工作组) 计算机有连接权.
简单的解决方案
您可以通过定义允许的计算机源来修复此错误. Event Viewer 或是 PowerShell 在您的事件收集器服务器上.
方法1:使用事件查看器GUI (最简单)
- 打开门 Start Menu, 类型
Event Viewer,右键点击它,并选择 Run as administrator. - 在左面板,点击 Subscriptions.
- 在中心窗口中找到您的破损订阅,右键单击,然后选择 Properties.
- 看房产窗口的底部,点击 Advanced 按一下一个按.
- 在高级订阅设置窗口中,找到 Allowed Source Computer Groups 部分.
- 按下 Domain Computers 按 (如果您的机器位于Active Directory域) 或 Non-Domain Computers (如果您使用工作组和证书).
- 添加特定的计算机对象,安全组 (如
Domain Computers您的网络所需的发行商证书参数. - 点击 OK 关闭高级设置,然后点击 OK 为了保存订阅.
- 打开一个升高的 Command Prompt 并通过输入重启Windows事件收集器服务:
net stop wecsvc && net start wecsvc
方法2:使用命令行 (最快)
If you prefer using the command line or need to fix this over an administrative terminal session, you can update the subscription directly with the wecutil 这是一个工具.
- 打开门 Start Menu 寻找 Command Prompt,右键点击它,并选择 Run as administrator.
- 运行下面的命令来注入默认的Active Directory Domain Computers 直接进入您的订阅 (取代
YourSubscriptionName您的订阅的实际名称):wecutil ss "YourSubscriptionName" /asd:"O:NSG:NSD:(A;;GA;;;DC)(A;;GA;;;NS)" - 如果你的消息来源是 Non-Domain 机器,使用这个命令来绑定您的特定允许证书发行者配置:
wecutil ss "YourSubscriptionName" /asnd:"IssuerValue" - 强迫事件收集器服务通过运行:
wecutil rsc "YourSubscriptionName"
我可以为您提供适合您特定环境的精确配置脚本.
可能有一些错误.. Learn Microsoft