2017-07-15 12 views
0

server01から以下のpowershellスクリプトを実行しようとしています。私はserver03のアカウントを持っているので、資格情報を渡さなかった。合格しても、同じエラーメッセージが表示されます。Powershell-サーバー上でスクリプトをリモート実行

私のアカウントはdomainAにあり、server01とserver 03はdomainBにあります。 DomainBに属する別のアカウントでserver01にログインした場合、スクリプトは動作します。

私はクロスドメインPSを実行する前に何か他に有効にする必要がありますか?

Invoke-Command -ComputerName server03 -FilePath E:test\test.ps1 

[Server03] Connecting to remote server failed with the following error message : WinRM cannot process the request. The following error occured while using Kerberos authentication: The network path was not found. 
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 us 
e 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: (:) [], PSRemotingTransportException 
    + FullyQualifiedErrorId : PSSessionStateBroken 
+1

これは、ダブルホップの問題です。 CredSSPの使用を検討してください。しかし、それを有効にするためのセキュリティの影響があるかもしれないので、徹底的に調査してください。 –

答えて

0

私はFDQNをサーバーに追加しました。正常に動作しました。

Invoke-Commandコマンド-ComputerName server03.domain.com -FilePath E:テストの\ test.ps1

関連する問題