即使未加密的流量为真,远程命令也会失败

时间:2015-05-23 11:20:56

标签: powershell powershell-remoting powershell-v4.0

我正在尝试从一台PC到另一台PC打开远程PSSession。两台PC都在局域网中并且可以访问,但每当我尝试输入PSSession时,都会发生以下错误:

Enter-PSSession : Connecting to remote server pc2 failed with the
following error message : The WinRM client cannot process the request.
Unencrypted traffic is currently disabled in the client configuration.
Change the client configuration and try the request again. For more
information, see the about_Remote_Troubleshooting Help topic. At
line:1 char:1
+ Enter-PSSession -ComputerName pc2 -Authentication Basic -Credential admin
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (pc2:String) [Enter-PSSession], PSRemotingTransportException
    + FullyQualifiedErrorId : CreateRemoteRunspaceFailed

我在

中将AllowUnencrypted设置为true
  

的WSMan ::本地主机\客户端

  

的WSMan ::本地主机\服务

远程PC上的位置,但仍然得到相同的错误。我还需要更新其他设置吗?

0 个答案:

没有答案