powershell - 我可以知道如何在 powershell 中添加 TrustedHosts
问题描述
我正在使用以下命令添加但显示需要将策略设置为“未配置”的错误。任何人都可以帮助我吗?
解决方案
从错误看来,您的受信任主机是使用 GPO 设置的。在您的计算机上运行gpresults /H report.html
并检查它是否已设置。
它应该在这里:Computer Configuration / Policies / Administrative Templates / Windows Components / Windows Remote Management (WinRM) / WinRM Client / Trusted Hosts
您可以将其更改为,Not Configured
也可以将主机添加到配置中
推荐阅读
- c# - 表单提交失败后发回敏感信息的安全问题
- cmake - CMAKE_INSTALL_RPATH_USE_LINK_PATH 没有任何影响
- wordpress - Wordpress:将所有帖子(项目)重定向到特定页面
- java - 使用 Java 将 Oracle Blob 内容插入另一条记录时出现问题
- javascript - 是否可以更改语义-ui-dropdown 上的“添加”文本?
- angular - ng-bootstrap popover 增加页面宽度
- c++ - c++ 使用 c 样式数组聚合初始化
- javascript - 将 npm 包与 webpack 捆绑,但排除所有供应商包
- json - 如何在 Postman 中将 JSON Schema 设置为全局变量?
- r - 如何将方形图例转换为 sf 中的点图例