我正在尝试从一台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上的位置,但仍然得到相同的错误。我还需要更新其他设置吗?