У меня есть простой сценарий PowerShell, который использует Invoke-Command
для вызова PowerShell ScriptBlock
на удаленном компьютере с помощью удаленного управления Windows (WinRM). Сценарий выполняется в системе 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
Кроме того, когда я пытаюсь подключиться к административным сетевым ресурсам удаленного компьютера, я вижу следующее сообщение об ошибке: «Неверное имя целевой учетной записи.».
Когда я пытаюсь подключиться к административной общей папке компьютера в рамках локального сеанса, я получаю сообщение об ошибке: "Указанное сетевое имя больше недоступно".