1

Windows リモート管理 (WinRM) を介してリモート コンピューターInvoke-Commandで PowerShell を呼び出すために使用する単純な 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

さらに、リモート コンピューターの管理ネットワーク共有に接続しようとすると、次のエラー メッセージが表示されます。「ターゲット アカウント名が正しくありません。

エラーメッセージ

ローカル セッションでコンピューターの管理共有に接続しようとすると、次のエラーが表示されます。「指定されたネットワーク名は利用できなくなりました。

エラーメッセージ

4

1 に答える 1

0

ターゲット コンピューターは最近再構築されたもので、一時的なコンピューター名が付けられていたことが判明しました。コンピュータの古い DNS エントリがまだあったため、古い名前を使用してコンピュータに接続すると、「ターゲット アカウント名が正しくありません」というエラーが発生しました。

コンピューターの名前を変更し、正しい名前を使用してコンピューターを参照した後、問題は解消されました。または、IP アドレスを使用してコンピュータに接続できました。

コンピュータネーム

于 2014-02-14T18:30:55.833 に答える