powershell remote system 在localhost创建会话链接 失败

发布于 2022-09-03 19:29:41 字数 1955 浏览 19 评论 0

**OS:Windows10 Pro
PSVersion:5.1**

以管理员权限启动Standard Powershell,并且将localhost加入了trusthost列表,New-Pssession依然报错。

以下是报错信息:

New-PSSession : [localhost] Connecting to remote server localhost failed with the following error message : WinRM cannot process the request. The following
error with errorcode 0x8009030e occurred while using Negotiate authentication: A specified logon session does not exist. It may already have been
terminated.
 Possible causes are:
  -The user name or password specified are invalid.
  -Kerberos is used when no authentication method and no user name are specified.
  -Kerberos accepts domain user names, but not local user names.
  -The Service Principal Name (SPN) for the remote computer name and port does not exist.
  -The client and remote computers are in different domains and there is no trust between the two domains.
 After checking for the above issues, try the following:
  -Check the Event Viewer for events related to authentication.
  -Change the authentication method; add the destination computer to the WinRM TrustedHosts configuration setting or use HTTPS transport.
 Note that computers in the TrustedHosts list might not be authenticated.
   -For more information about WinRM configuration, run the following command: winrm help config. For more information, see the about_Remote_Troubleshooting
Help topic.
 Other Possible Cause:
  -The domain or computer name was not included with the specified credential, for example: DOMAIN\UserName or COMPUTER\UserName.
At line:1 char:1
+ New-PSSession
+ ~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException
    + FullyQualifiedErrorId : 1312,PSSessionOpenFailed

以下是截图:

图片描述

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文