gpt4 book ai didi

powershell - 在 win2008R2 和 Win7 上启用 PSRemoting 的错误

转载 作者:行者123 更新时间:2023-12-03 14:35:24 30 4
gpt4 key购买 nike

今天我需要在 W2008R2 和 Win7 上启用 PSRemoting:

所有虚拟机都在工作组中。
我在每个虚拟机上设置了相同的管理员帐户和相同的密码。
以管理员角色在 powershell 中运行 Enable-PSRemoting。
但是我仍然面临以下错误:

错误一:

Set-WSManQuickConfig : Access is denied.



错误2:

[192.168.23.2] Connecting to remote server failed with the following error message : The WinRM client cannot process th e request. If the authentication scheme is different from Kerberos, or if the client computer is not joined to a domain , then HTTPS transport must be used or the destination machine must be added to the TrustedHosts configuration setting. Use winrm.cmd to configure TrustedHosts. Note that computers in the TrustedHosts list might not be authenticated. You can get more information about that by running the following command: winrm help config. For more information, see the about_Remote_Troubleshooting Help topic. + CategoryInfo : OpenError: (:) [], PSRemotingTransportException + FullyQualifiedErrorId : PSSessionStateBroken



错误 3:

Set-WSManQuickConfig : WinRM firewall exception will not work since one of the network connection types on this machine is set to Public. Change the network connection type to either Domain or Private and try again.

最佳答案

对于错误 3,运行以下命令:

Set-WSManQuickConfig -SkipNetworkProfileCheck

当您连接网络时,它会设置为公共(public)、私有(private)或域。如果当前配置文件设置为公开, Set-WSManQuickConfig将因该消息而失败。您可以更改它(如果系统允许)或跳过配置文件检查。

关于powershell - 在 win2008R2 和 Win7 上启用 PSRemoting 的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27101910/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com