I tried running the script and noticed the same issue. I am trying this on Windows 2008 R2 and Windows 2008 SP2. I have upgraded to Powershell 3
On Friday, April 8, 2016 at 3:23:31 PM UTC+5:30, J Hawkesworth wrote: > > Can you try re-running the script > https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 > > please? > > Which version of Windows are you running against? > > On Thursday, April 7, 2016 at 12:10:56 PM UTC+1, Deepa Yr wrote: >> >> WinRM is already set up to receive requests on this computer. >> WinRM has been updated for remote management. >> Created a WinRM listener on HTTP://* to accept WS-Man requests to any IP >> on this machine. >> WinRM firewall exception enabled. >> Configured LocalAccountTokenFilterPolicy to grant administrative rights >> remotely to local users. >> >> (Legacy) Self-signed SSL certificate generated; thumbprint: >> DCDC74FDA8CADDB6667804DA9A683CA72D79C77A >> New-WSManInstance : The WinRM client cannot process the request. The >> certificate CN and the hostname that were >> provided do not match. >> At C:\ConfigureRemotingForAnsible.ps1:145 char:5 >> + New-WSManInstance -ResourceURI 'winrm/config/Listener' -SelectorSet >> $selecto ... >> + >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> + CategoryInfo : InvalidOperation: (:) [New-WSManInstance], >> InvalidOperationException >> + FullyQualifiedErrorId : >> WsManError,Microsoft.WSMan.Management.NewWSManInstanceCommand >> >> >> Getting above error. >> I checked $env.ComputerName which is used for CN and hostname values are >> same. Still I am getting above error. >> Need help in resolving this >> >> Thanks >> Deepa >> > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b069f6ef-c8fd-4555-8c85-4f3131eaee1f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
