Category : winrm

I am trying to create a windows server 2016 base AMI using packer. But in order for packer to get into the instance, we need to bootstrap and enable winrm first. Referring this for the bootstrap_win script file: https://learn.hashicorp.com/tutorials/packer/aws-windows-image However, timeout happens waiting for winrm (tried setting winrm_timeout too, but it takes more time and ..

Read more

I access to one remote machine to automate some ssl task. To accomplish this from the remote I need import a file from a shared network folder in windows. I´m using pywinrm then after a successful session started I run: s.run_ps(”’ $Password = ConvertTo-SecureString -AsPlainText -Force {0} Import-PfxCertificate -FilePath {1} -CertStoreLocation Cert:LocalMachineWebHosting – Password $Password ..

Read more

I have setup a source initiated subscription for Windows Event Forwarding where the event source computer is not in the same domain as the collector following Microsoft’s documenatation. That includes enabling WinRM on the collector and creating a local administrator and a certmapping for this user. Following the steps will allow the event source computer ..

Read more

Ansible controller node cannot connect to Windows EC2 instance with WinRM when the instance created. It always failed until I remote to the target server with Remote Desktop. I have not changed any WinRM configurations. Ansible: 2.9 Target server: Windows Server 2016 with Base (Amazon Image) Before remote 10.0.168.87 | UNREACHABLE! => { "changed": false, ..

Read more

I have a script to enable basic auth for the ansible control node to connect to windows host. Below is the script, when I execute the script I get an error msg The config setting Basic cannot be changed because is controlled by policies. Set-Service WinRM -StartMode Automatic Set-Item -Force WSMan:localhostServiceAuthBasic $True winrm set winrm/config/service/auth ..

Read more

I have Ansible running on Linux Mint on an Oracle VM. I am following this tutorial: https://www.ansible.com/blog/connecting-to-a-windows-host to test communication with my host OS, Windows 10. Bridged networking is set up. I have done the following steps: install Ansible on the Linux VM install Python 3.9 on Windows set up WinRM on Windows configure hosts ..

Read more