首页 > 解决方案 > 我可以知道如何在 powershell 中添加 TrustedHosts

问题描述

我正在使用以下命令添加但显示需要将策略设置为“未配置”的错误。任何人都可以帮助我吗?

错误截图

标签: powershell

解决方案


从错误看来,您的受信任主机是使用 GPO 设置的。在您的计算机上运行gpresults /H report.html并检查它是否已设置。

它应该在这里:Computer Configuration / Policies / Administrative Templates / Windows Components / Windows Remote Management (WinRM) / WinRM Client / Trusted Hosts

您可以将其更改为,Not Configured也可以将主机添加到配置中


推荐阅读