# \#powershell

**URL:** https://forum.ansible.com/tag/powershell/247.md

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

---

## [Windows psrp connections are not being closed](https://forum.ansible.com/t/windows-psrp-connections-are-not-being-closed/46482)

<div class="topic-metadata">

**Author:** [@atlas](https://forum.ansible.com/u/atlas)\
**Replies:** 1\
**Last updated:** [October 16, 2026, 9:12pm UTC](https://forum.ansible.com/t/windows-psrp-connections-are-not-being-closed/46482 "2026-10-16T21:12:09Z")

</div>

We have an ansible pipeline that connects to a windows system. After it runs, there are many “Host process for WinRM plug-ins” processes still hanging there and eating memory. We have to end the tasks manually or reboot …

---

## [PowerShell Specific Collection](https://forum.ansible.com/t/powershell-specific-collection/45708)

<div class="topic-metadata">

**Author:** [@jborean](https://forum.ansible.com/u/jborean)\
**Replies:** 5\
**Last updated:** [April 21, 2026, 12:36am UTC](https://forum.ansible.com/t/powershell-specific-collection/45708 "2026-04-21T00:36:05Z")

</div>

With the upcoming release of Ansible 2.22 it is now possible to run PowerShell modules through the common exec wrapper. Currently only a small subset of modules in ansible.windows support this once Support for non-Window…

---

## [k=v and YAML error for valid Powershell line](https://forum.ansible.com/t/k-v-and-yaml-error-for-valid-powershell-line/44861)

<div class="topic-metadata">

**Author:** [@WinPS](https://forum.ansible.com/u/WinPS)\
**Replies:** 4\
**Last updated:** [November 19, 2025, 5:12pm UTC](https://forum.ansible.com/t/k-v-and-yaml-error-for-valid-powershell-line/44861 "2025-11-19T17:12:08Z")

</div>

Hi all, We have some jobs running Powershell against our Windows servers and I recently added a few lines of Powershell to one of them using ansible.windows.win\_powershell: script: | Despite this already being common…

---

## [AnsiballZ/PowerShell ParseError when using win\_scheduled\_task](https://forum.ansible.com/t/ansiballz-powershell-parseerror-when-using-win-scheduled-task/44375)

<div class="topic-metadata">

**Author:** [@dustin\_k](https://forum.ansible.com/u/dustin_k)\
**Replies:** 3\
**Last updated:** [September 4, 2025, 3:42am UTC](https://forum.ansible.com/t/ansiballz-powershell-parseerror-when-using-win-scheduled-task/44375 "2025-09-04T03:42:04Z")

</div>

Hello, I’m attempting to create a scheduled task using win\_scheduled\_task but getting a ParseError. It looks like in order to execute the ansible task, AnsiballZ generates a Powershell script, but when trying to execute…

---

## [Limiting error output / exception depth in win\_powershell failed tasks](https://forum.ansible.com/t/limiting-error-output-exception-depth-in-win-powershell-failed-tasks/40305)

<div class="topic-metadata">

**Author:** [@cruscio](https://forum.ansible.com/u/cruscio)\
**Replies:** 2\
**Last updated:** [February 17, 2025, 5:22pm UTC](https://forum.ansible.com/t/limiting-error-output-exception-depth-in-win-powershell-failed-tasks/40305 "2025-02-17T17:22:28Z")

</div>

If you run an ansible.windows.win\_powershell task that causes an error parameterizing a \[System.Data.CommandType\]::StoredProcedure, the resulting task output will be 2MB of text per host. Is there a way to limit the err…

---

## [Parsing output from win\_powershell and format-list](https://forum.ansible.com/t/parsing-output-from-win-powershell-and-format-list/40258)

<div class="topic-metadata">

**Author:** [@opoplawski](https://forum.ansible.com/u/opoplawski)\
**Replies:** 2\
**Last updated:** [February 14, 2025, 12:06am UTC](https://forum.ansible.com/t/parsing-output-from-win-powershell-and-format-list/40258 "2025-02-14T00:06:54Z")

</div>

I would like to get structured output of a list of processes on a WIndows machine. My thought was to do: ansible -m ansible.windows.win\_powershell -a 'script="Get-Process | Format-table -Property Name,Product,PID"' Bu…

---

## [XML "not well-formed" error with powershell, different behavior in verbose mode](https://forum.ansible.com/t/xml-not-well-formed-error-with-powershell-different-behavior-in-verbose-mode/39528)

<div class="topic-metadata">

**Author:** [@christianh](https://forum.ansible.com/u/christianh)\
**Replies:** 4\
**Last updated:** [January 16, 2025, 9:27pm UTC](https://forum.ansible.com/t/xml-not-well-formed-error-with-powershell-different-behavior-in-verbose-mode/39528 "2025-01-16T21:27:36Z")

</div>

Hi! I am having an issue with ansible interacting with powershell on a windows-machine. The Problem disappears when using verbose mode, which makes it a bit difficult to debug. I am using ansible 2.18.1 on a linux mach…

---

## [The powershell shell family is incompatible with the sudo become plugin](https://forum.ansible.com/t/the-powershell-shell-family-is-incompatible-with-the-sudo-become-plugin/4674)

<div class="topic-metadata">

**Author:** [@ayoub\_yousfi](https://forum.ansible.com/u/ayoub_yousfi)\
**Replies:** 12\
**Last updated:** [April 5, 2024, 2:47pm UTC](https://forum.ansible.com/t/the-powershell-shell-family-is-incompatible-with-the-sudo-become-plugin/4674 "2024-04-05T14:47:57Z")

</div>

I’m new with ansible projects. when running this command : ansible-playbook install\_nginx.yml --ask-become-pass I got this error : TASK \[Gathering Facts\] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*…

---

## [Win\_command | win\_shell fails on running a powershell script](https://forum.ansible.com/t/win-command-win-shell-fails-on-running-a-powershell-script/4237)

<div class="topic-metadata">

**Author:** [@Fredrik\_T](https://forum.ansible.com/u/Fredrik_T)\
**Replies:** 3\
**Last updated:** [March 7, 2024, 2:25pm UTC](https://forum.ansible.com/t/win-command-win-shell-fails-on-running-a-powershell-script/4237 "2024-03-07T14:25:07Z")

</div>

I’m facing an issue where running a powershell script via Ansible compared to running it locally behaves differently. Initially started out using the win\_powershell and placing a script block in the task. Though I was …

---

## [How to tell win\_powershell module which version of PowerShell to use](https://forum.ansible.com/t/how-to-tell-win-powershell-module-which-version-of-powershell-to-use/3321)

<div class="topic-metadata">

**Author:** [@jszigetvari](https://forum.ansible.com/u/jszigetvari)\
**Replies:** 2\
**Last updated:** [January 16, 2024, 11:32am UTC](https://forum.ansible.com/t/how-to-tell-win-powershell-module-which-version-of-powershell-to-use/3321 "2024-01-16T11:32:11Z")

</div>

Dear Members, I have an older version of Windows (2012 R2) that comes with an older version of PowerShell installed. I have also installed the latest (7.4.1) version of PowerShell on the machine, but apparentlu the ans…

---

## [PowerShell + DevOps Global Summit 2024](https://forum.ansible.com/t/powershell-devops-global-summit-2024/3253)

<div class="topic-metadata">

**Author:** [@Leo](https://forum.ansible.com/u/Leo)\
**Replies:** 0\
**Last updated:** [January 11, 2024, 12:06am UTC](https://forum.ansible.com/t/powershell-devops-global-summit-2024/3253 "2024-01-11T00:06:25Z")

</div>

PowerShell + DevOps Global Summit is the gathering of PowerShell + DevOps professionals and enthusiasts. More than just a conference, it’s a true in-person gathering of a vibrant community – we learn from each other, we…

---

## [How to import powershell module from local file (intelNetCmdlet.psd1)](https://forum.ansible.com/t/how-to-import-powershell-module-from-local-file-intelnetcmdlet-psd1/3135)

<div class="topic-metadata">

**Author:** [@car](https://forum.ansible.com/u/car)\
**Replies:** 2\
**Last updated:** [January 3, 2024, 9:17pm UTC](https://forum.ansible.com/t/how-to-import-powershell-module-from-local-file-intelnetcmdlet-psd1/3135 "2024-01-03T21:17:06Z")

</div>

Hi all, Have any of You tried to import a powershell module from local file (intelNetCmdlet.psd1) and then run cmdlets I can make the module work outside Ansible with import-module -path “C:\\somepath.psd1” on windows. …

---

## [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…
