Am trying for https. Power shell basic script as follows $url = "https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1" $file = "$env:temp\ConfigureRemotingForAnsible.ps1" $username = "username" $password = "password "
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force $browser = New-Object System.Net.WebClient $browser.Proxy.Credentials =[System.Net.CredentialCache]::DefaultNetworkCredentials $browser.DownloadFile($url, $file) # version can be 3.0, 4.0 or 5.1 #&$file -Version 3.0 -Username $username -Password $password -Verbose #(New-Object -TypeName System.Net.WebClient).DownloadFile($url, $file) powershell.exe -ExecutionPolicy ByPass -File $file Setting up a listener : $selector_set = @{ Address = "*" Transport = "HTTPS" } $value_set = @{ CertificateThumbprint = "EF39ECD8A40F83ACC2BE85D95303EED2EB7DCE5C" } New-WSManInstance -ResourceURI "winrm/config/Listener" -SelectorSet $selector_set -ValueSet $value_set And i followed the steps mention here : https://docs.ansible.com/ansible/latest/user_guide/windows_setup.html#host-requirements. 1. Power shell upgrade 2. Hotfix 3. Basic winrm setup 4. Setting up listener On Saturday, January 19, 2019 at 4:13:59 AM UTC+5:30, Jordan Borean wrote: > > I forgot to mention that running over http (like you are) for basic auth > will only work if you have disabled message encryption on the Windows host. > Do not do this, do something sane like running over https or use an > authentication option that supports message encryption like Kerberos or > NTLM. > -- 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/d52e5701-53c7-4d9d-a2cc-b7ca213f438d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.