问题描述
我正在尝试从 server1(它们都在同一个域中)在 server2 上打开远程 powershell 会话。当我尝试从 server1 运行以下命令时:
Enter-pssession -computername server2 -Credential $cred
我收到以下错误:
Enter-pssession : Connecting to Remote Server server2 Failed with the following error message : The WSMan service
Could not launch a host process to process the given request. Make sure the WSMan provider host server and proxy are
properly registered. For more information,see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo : InvalidArgument: (server2:String) [Enter-PSSession],PSRemotingTransportException
+ FullyQualifiedErrorId : CreateRemoteRunspaceFailed
但是运行 test-wsman 命令会给出:
Test-WSMan -ComputerName server2 -Credential $cred -Authentication Kerberos
wsmid : http://schemas.dmtf.org/wbem/wsman/identity/1/wsmanidentity.xsd
ProtocolVersion : http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
Productvendor : Microsoft Corporation
ProductVersion : OS: 10.0.17763 SP: 0.0 Stack: 3.0
无法弄清楚问题。已尝试启用-PSRemoting 并检查代理的 $PSSessionoption。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)