Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

PS-Remoting Problem

$
0
0

Hello,

I wan’t connect remote over powershell to servers with this command:

cls

invoke-command -computername "zserver01" -script {get-service}

The name from the server, why i run this script is zserver02

When I run this script on server zserver02, I get this error message:

[zserver01] Connecting to remote server failed with the following error message : WinRM cannot process the request. The following error occured while u

sing 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 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: (:) [], PSRemotingTransportException

    + FullyQualifiedErrorId : PSSessionStateBroken

I have start at remote server zserver01 Enable-PsRemoting, with this result:

WinRM already is set up to receive requests on this machine.

WinRM already is set up for remote management on this machine.

Also those SPN‘s are set at zserver01:

setspn.exe -L zserver01

Result:

Registered ServicePrincipalNames for CN=ZSERVER01,OU=DE-MUC,OU=Servers,DC=company,DC=corp:

        HTTPS/ZServer01.company.corp

        HTTPS/ZServer01

        HTTP/ZServer01.company.corp

        HTTP/ZServer01

        SMTPSVC/ZSERVER01

        SMTPSVC/ZServer01.company.corp

        WSMAN/ZServer01.company.corp

        WSMAN/ZServer01

        TERMSRV/ZServer01.company.corp

        TERMSRV/ZSERVER01

        RestrictedKrbHost/ZSERVER01

        HOST/ZSERVER01

        RestrictedKrbHost/ZSERVER01.company.corp

        HOST/ZSERVER01.company.corp

I hope somebody can help me,


Thanks Horst MOSS 2007 Farm; MOSS 2010 Farm; TFS 2010; IIS 7.5


Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>