【问题标题】:Error when connecting via Windows Remote Management通过 Windows 远程管理连接时出错
【发布时间】:2014-03-14 06:13:03
【问题描述】:

我有一个简单的 PowerShell 脚本,它使用 Invoke-Command 通过 Windows 远程管理 (WinRM) 在远程计算机上调用 PowerShell ScriptBlock。该脚本从 Windows Server 2012 系统执行,并针对 Windows 8.1 系统。

脚本很简单,看起来像这样:

Invoke-Command -ComputerName client03 -ScriptBlock { Get-Process; };

这是错误:

[client03] Connecting to remote server client03 failed with the following error message : WinRM cannot process the
request. The following error with errorcode 0x80090322 occurred while using Kerberos authentication: An unknown
security error occurred.
 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.
    + CategoryInfo          : OpenError: (client03:String) [], PSRemotingTransportException
    + FullyQualifiedErrorId : -2144108387,PSSessionStateBroken

此外,当我尝试连接到远程计算机的管理网络共享时,我看到以下错误消息:“目标帐户名称不正确。

当我尝试在本地会话中连接到计算机的管理共享时,我收到错误消息:“指定的网络名称不再可用。

【问题讨论】:

    标签: windows powershell winrm


    【解决方案1】:

    事实证明,目标计算机最近已重建,并且它有一个临时计算机名称。计算机仍然有旧的 DNS 条目,因此使用旧名称连接到计算机导致错误“目标帐户名称不正确。

    重命名计算机并使用正确名称引用计算机后,问题消失了。或者,使用其 IP 地址连接到计算机是成功的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-10-25
      • 1970-01-01
      • 2020-05-16
      • 1970-01-01
      • 1970-01-01
      • 2020-02-15
      • 2012-09-06
      • 1970-01-01
      相关资源
      最近更新 更多