# \#winrm

**URL:** https://forum.ansible.com/tag/winrm/245.md

[Latest](https://forum.ansible.com/latest.md) · [Categories](https://forum.ansible.com/categories.md) · [Tags](https://forum.ansible.com/tags.md)

---

## [Windows winrm/kerberos fails intermittently in same playbook/relaunches (RESOLVED)](https://forum.ansible.com/t/windows-winrm-kerberos-fails-intermittently-in-same-playbook-relaunches-resolved/39658)

<div class="topic-metadata">

**Author:** [@idlebyte](https://forum.ansible.com/u/idlebyte)\
**Replies:** 8\
**Last updated:** [January 13, 2026, 7:30pm UTC](https://forum.ansible.com/t/windows-winrm-kerberos-fails-intermittently-in-same-playbook-relaunches-resolved/39658 "2026-01-13T19:30:32Z")

</div>

Basic Ansible Automation Platform install on an Azure VM running kerberos auth’d WinRM calls using win\_shell fails intermittently with ‘server not found in kerberos database’. --- - name: Test Powershell Executions ho…

---

## [Ansible WinRM connection to Windows machines hangs often](https://forum.ansible.com/t/ansible-winrm-connection-to-windows-machines-hangs-often/44387)

<div class="topic-metadata">

**Author:** [@johnny91](https://forum.ansible.com/u/johnny91)\
**Replies:** 1\
**Last updated:** [August 30, 2025, 11:58am UTC](https://forum.ansible.com/t/ansible-winrm-connection-to-windows-machines-hangs-often/44387 "2025-08-30T11:58:10Z")

</div>

Hi! I have some Windows machines set up on virt-manager on Ubuntu and they work great to login to etc. But when I run ansible against it to install things, create an AD domain etc, sometimes ansible does not succeed in …

---

## [WinRM permissions](https://forum.ansible.com/t/winrm-permissions/41583)

<div class="topic-metadata">

**Author:** [@ajbrehm](https://forum.ansible.com/u/ajbrehm)\
**Replies:** 3\
**Last updated:** [June 11, 2025, 2:16pm UTC](https://forum.ansible.com/t/winrm-permissions/41583 "2025-06-11T14:16:37Z")

</div>

Hi all, says that by winrm configSDDL default one should give access to the account or group used by Ainsible to allow non-administrator access to WinRM. I understand “default” is really the default security descript…

---

## [Win\_shell + loops + delegate\_to does not work (not at all or as expected)](https://forum.ansible.com/t/win-shell-loops-delegate-to-does-not-work-not-at-all-or-as-expected/11203)

<div class="topic-metadata">

**Author:** [@msperl](https://forum.ansible.com/u/msperl)\
**Replies:** 0\
**Last updated:** [November 28, 2024, 10:33am UTC](https://forum.ansible.com/t/win-shell-loops-delegate-to-does-not-work-not-at-all-or-as-expected/11203 "2024-11-28T10:33:39Z")

</div>

I am trying to run several win\_shell command to different windows hosts for a single linux server. The number of iterations we want to run is totally defined by the inventory (i.e group membership). This unfortunately …

---

## [WinRM and Kerberos. WINRM CONNECTION ERROR: Bad HTTP response returned from server. Code 500](https://forum.ansible.com/t/winrm-and-kerberos-winrm-connection-error-bad-http-response-returned-from-server-code-500/10908)

<div class="topic-metadata">

**Author:** [@Iwan](https://forum.ansible.com/u/Iwan)\
**Replies:** 14\
**Last updated:** [November 15, 2024, 8:28am UTC](https://forum.ansible.com/t/winrm-and-kerberos-winrm-connection-error-bad-http-response-returned-from-server-code-500/10908 "2024-11-15T08:28:55Z")

</div>

A few months ago, I was able to set up an ansible environment in a Virtual environment on a Ubuntu 24.04 server. I use it mainly to manage Windows Servers through WinRM with a kerberos authentication. I communicate on …

---

## [How to use vm guest\_name for a win\_disks module?](https://forum.ansible.com/t/how-to-use-vm-guest-name-for-a-win-disks-module/10320)

<div class="topic-metadata">

**Author:** [@ansibliano](https://forum.ansible.com/u/ansibliano)\
**Replies:** 2\
**Last updated:** [October 17, 2024, 7:46am UTC](https://forum.ansible.com/t/how-to-use-vm-guest-name-for-a-win-disks-module/10320 "2024-10-17T07:46:34Z")

</div>

Hi, I would like to read vm hostname from a VM Folder and use it to estract the list of windows disks. I tried with the following code, but it doesn’t work. I obtain: TASK \[debug\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [CreateProcessAsUser failed with Win32ErrorCode 1058 when running become: true on a Windows host?](https://forum.ansible.com/t/createprocessasuser-failed-with-win32errorcode-1058-when-running-become-true-on-a-windows-host/2864)

<div class="topic-metadata">

**Author:** [@DevOpsJeremy](https://forum.ansible.com/u/DevOpsJeremy)\
**Replies:** 1\
**Last updated:** [October 16, 2024, 4:31pm UTC](https://forum.ansible.com/t/createprocessasuser-failed-with-win32errorcode-1058-when-running-become-true-on-a-windows-host/2864 "2024-10-16T16:31:28Z")

</div>

I’m using Ansible Automation Platform. I’m trying to run a task (specifically community.windows.win\_credential) on a Windows host using become: true, but it’s failing with the following error: { "exception": "Exceptio…

---

## [Inconsistent WinRM deployements](https://forum.ansible.com/t/inconsistent-winrm-deployements/7269)

<div class="topic-metadata">

**Author:** [@Jason\_Longley](https://forum.ansible.com/u/Jason_Longley)\
**Replies:** 7\
**Last updated:** [July 15, 2024, 7:20pm UTC](https://forum.ansible.com/t/inconsistent-winrm-deployements/7269 "2024-07-15T19:20:04Z")

</div>

Hi. I am having issues running playbooks against windows servers, with consistent results. I can execute a playbook on a server, and it will be successful. I will attempt to run the same playbook on the same server aga…

---

## [Win\_package hangs](https://forum.ansible.com/t/win-package-hangs/6786)

<div class="topic-metadata">

**Author:** [@tlemons](https://forum.ansible.com/u/tlemons)\
**Replies:** 2\
**Last updated:** [July 3, 2024, 6:03pm UTC](https://forum.ansible.com/t/win-package-hangs/6786 "2024-07-03T18:03:27Z")

</div>

Hi - I’m trying to use the Ansible win\_package module to install “Visual C++ Redistributable Packages for Visual Studio 2013” on a Windows Server 2022 system. The win\_package execution does not produce an error, but it h…

---

## [Code 500 WinRM ping failed](https://forum.ansible.com/t/code-500-winrm-ping-failed/5128)

<div class="topic-metadata">

**Author:** [@Tectonic](https://forum.ansible.com/u/Tectonic)\
**Replies:** 13\
**Last updated:** [April 29, 2024, 5:11pm UTC](https://forum.ansible.com/t/code-500-winrm-ping-failed/5128 "2024-04-29T17:11:35Z")

</div>

I have been looking into this for a dew days now and have not found a solution to the issue I am running into. This is just a test setup so I can learn to use Ansible before moving onto a larger deployment. It is betwe…

---

## [Ansible Vault - Issues with Encrypting ansible\_password](https://forum.ansible.com/t/ansible-vault-issues-with-encrypting-ansible-password/4412)

<div class="topic-metadata">

**Author:** [@Bibbi](https://forum.ansible.com/u/Bibbi)\
**Replies:** 4\
**Last updated:** [March 19, 2024, 11:51am UTC](https://forum.ansible.com/t/ansible-vault-issues-with-encrypting-ansible-password/4412 "2024-03-19T11:51:37Z")

</div>

Hi everyone. I encounter an issue while attempting to encrypt the ansible\_password using ansible-vault for connecting to a Windows host with WinRM. Once the password is encrypted and inserted into the vars/main.yaml fil…

---

## [Unable to start IBM WAS(WebSphere application Server) through ansible playbook](https://forum.ansible.com/t/unable-to-start-ibm-was-websphere-application-server-through-ansible-playbook/3153)

<div class="topic-metadata">

**Author:** [@ansiblethinks](https://forum.ansible.com/u/ansiblethinks)\
**Replies:** 0\
**Last updated:** [January 4, 2024, 9:20am UTC](https://forum.ansible.com/t/unable-to-start-ibm-was-websphere-application-server-through-ansible-playbook/3153 "2024-01-04T09:20:30Z")

</div>

Controller Node:- OS : Rhel8.8 Ansible Version: core 2.15.0 Python Version: 3.9.16 Pywinrm Version: 0.4.3 Managed HOST:- OS : windows server 2016 INVENTRY:- using winrm for connection and transport method is ntl…

---

## [Winrm commands through a jumphost](https://forum.ansible.com/t/winrm-commands-through-a-jumphost/3041)

<div class="topic-metadata">

**Author:** [@smags](https://forum.ansible.com/u/smags)\
**Replies:** 0\
**Last updated:** [December 22, 2023, 4:26am UTC](https://forum.ansible.com/t/winrm-commands-through-a-jumphost/3041 "2023-12-22T04:26:25Z")

</div>

I’m working on some Ansible playbooks currently and have provisioned a few hosts in AWS to allow me to do testing, 2 windows and 2 linux hosts. I only have connectivity into the new AWS environment I am working in via S…

---

## [Unexpected failure during module execution during Windows build](https://forum.ansible.com/t/unexpected-failure-during-module-execution-during-windows-build/1947)

<div class="topic-metadata">

**Author:** [@72clg](https://forum.ansible.com/u/72clg)\
**Replies:** 4\
**Last updated:** [October 26, 2023, 7:05pm UTC](https://forum.ansible.com/t/unexpected-failure-during-module-execution-during-windows-build/1947 "2023-10-26T19:05:09Z")

</div>

I’m trying to build a Windows Server (2016, 2019 and 2022) using Packer and Ansible within AWS and reusing code where I can. As part of the AMI creation it builds the image and sysprep it all OK, but then it creates an …

---

## [Ansible: user is not authenticating to network share](https://forum.ansible.com/t/ansible-user-is-not-authenticating-to-network-share/1602)

<div class="topic-metadata">

**Author:** [@mister\_ansible](https://forum.ansible.com/u/mister_ansible)\
**Replies:** 8\
**Last updated:** [October 17, 2023, 12:53pm UTC](https://forum.ansible.com/t/ansible-user-is-not-authenticating-to-network-share/1602 "2023-10-17T12:53:20Z")

</div>

I’m having difficulty transferring files from a network share to a disk on the local server, via a remote connection. I am logging into the server: SERVER02, however, permission denied appears, using Wireshark collection…

---

## [WinRM on APT Ansible installation](https://forum.ansible.com/t/winrm-on-apt-ansible-installation/1521)

<div class="topic-metadata">

**Author:** [@charlespick](https://forum.ansible.com/u/charlespick)\
**Replies:** 9\
**Last updated:** [October 15, 2023, 9:59pm UTC](https://forum.ansible.com/t/winrm-on-apt-ansible-installation/1521 "2023-10-15T21:59:45Z")

</div>

I installed Ansible with apt on Ubuntu 23. When I try adding Windows servers to the inventory it throws SSH errors. I’m assuming this is because the WinRM components are missing. In the docs it talks about adding them us…
