0
我有一個簡單的PowerShell腳本,它使用Invoke-Command
通過Windows遠程管理(WinRM)在遠程計算機上調用PowerShell ScriptBlock
。該腳本正在從Windows Server 2012系統執行,並針對Windows 8.1系統。通過Windows遠程管理連接時出錯
的腳本非常簡單,看起來像這樣:
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
而且,當我嘗試連接到遠程計算機的管理網絡共享,我看到以下錯誤消息:「目標帳戶名稱不正確」
當我嘗試在本地會話中連接到計算機的管理共享時,出現錯誤:「指定的網絡名稱不再可用。「