Checking the windows evetn log was so obvious that I didn't think about it. While running the script and getting the error, the event has recorded this event (sorry this is in french but I think it is understandable) :
08/06/2015 08:34:20 142 Erreur L'opération WSMan CreateShell a échoué, code d'erreur 5 08/06/2015 08:34:20 254 Information Transfert d'activité 08/06/2015 08:34:20 162 Erreur L'authentification de l'utilisateur a échoué. Les informations d’identification n’ont pas fonctionné. When I dig into the authentication error information I can see that the user listed is ITEM-81502\efibtf. This is the local user (with admin rights) that I am using to run the configuration script. On the Control Machine I am using the same user but without the computer prefix and it works fine. Maybe I should run the script as admin instead of running it as an user with admin rights ? Otherwise, do you have any idea how can I manage to authenticate without having the user prefixed with the computer name ? Le vendredi 5 juin 2015 13:34:58 UTC+2, J Hawkesworth a écrit : > > My guess would be firewall configuration on the windows machine is > stopping the remoting to localhost from working. > The other place to look would be in the winrm configuration. > Sometimes checking the windows event log can be helpful - have you looked > there? > > Jon > > On Thursday, June 4, 2015 at 4:32:59 PM UTC+1, Rene Metery wrote: >> >> Hi, >> >> I am currently configuring a windows computer to accept remote access >> from ansible and I am having a problem while running the >> script ConfigureRemotingForAnsible.ps1. >> >> Here is the error : >> >> PS D:\Ansible\Power Shell 3> .\ConfigureRemotingForAnsible.ps1 >> Unable to establish an HTTP or HTTPS remoting session. >> Au caractère D:\Ansible\Power Shell 3\ConfigureRemotingForAnsible.ps1:129 >> : 5 >> + Throw "Unable to establish an HTTP or HTTPS remoting session." >> + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> + CategoryInfo : OperationStopped: (Unable to estab...moting >> session.:String) [], RuntimeException >> + FullyQualifiedErrorId : Unable to establish an HTTP or HTTPS remoting >> session. >> >> >> I have checked my authentication configuration an it seems ok. >> >> PS D:\Ansible\Power Shell 3> winrm get winrm/config >> Config >> MaxEnvelopeSizekb = 500 >> MaxTimeoutms = 60000 >> MaxBatchItems = 32000 >> MaxProviderRequests = 4294967295 >> Client >> NetworkDelayms = 5000 >> URLPrefix = wsman >> AllowUnencrypted = false >> Auth >> Basic = true >> Digest = true >> Kerberos = true >> Negotiate = true >> Certificate = true >> CredSSP = false >> >> >> If you have any idea about the problem it will greatly help me. >> I can't find any post about that problem. >> Cheers, >> >> René METERY >> > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d4f5b151-57db-4d56-831a-711239903340%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.