# working with windows

**URL:** <https://forum.ansible.com/t/working-with-windows/34276>\
**Category:** Ansible Project\
**Tags:** windows, galaxy-ng\
**Created:** [December 3, 2020, 7:04am UTC](https://forum.ansible.com/t/working-with-windows/34276 "2020-12-03T07:04:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kez\_Halls](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@Kez\_Halls](https://forum.ansible.com/u/Kez_Halls)\
**Post date:** [December 3, 2020, 7:04am UTC](https://forum.ansible.com/t/working-with-windows/34276/1 "2020-12-03T07:04:18Z")

</div>

Hi  
I am a windows person so no real unix experience. I finally have ansible installed and have also successfully (I think) installed a plugin with the below  
ansible-galaxy collection install ansible.windows

When trying to test this script

- name: Install 7zip from a network share with specific credentials  
ansible.windows.win\_get\_url:  
path: \{SERVER}\d$\Software\7-zip\7z1900-x64.exe  
product\_id: 7-Zip  
arguments: /S  
state: present

I get

fatal: [{servername}]: FAILED! =\> {“changed”: false, “msg”: “Unhandled exception while executing module: The term ‘Get-AnsibleWindowsWebRequestSpec’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.”}

I cannot find anything that states there are powershell re-reqs and do not even know how to find where this is trying to call it (on the linux server or on my windows server)  
Any help appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![Stu](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@Stu](https://forum.ansible.com/u/Stu)\
**Post date:** [December 3, 2020, 9:20am UTC](https://forum.ansible.com/t/working-with-windows/34276/2 "2020-12-03T09:20:43Z")

</div>

That’s a powershell function that is part of the ansible.windows module.

[https://github.com/ansible-collections/ansible.windows/blob/main/plugins/module\_utils/WebRequest.psm1](https://github.com/ansible-collections/ansible.windows/blob/main/plugins/module_utils/WebRequest.psm1)

I’ve not used it myself, but it’s sounding like that module isn’t making it’s way to your windows server.

Hope that helps you with a place to start.

Stu

---

<div class="post-metadata">

**Author:** ![Kez\_Halls](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@Kez\_Halls](https://forum.ansible.com/u/Kez_Halls)\
**Post date:** [December 3, 2020, 10:49pm UTC](https://forum.ansible.com/t/working-with-windows/34276/3 "2020-12-03T22:49:38Z")

</div>

Are you suggesting that I should be copying down the modules to the server that I am running the command against?  
If so why doesn’t the examples show this to be the case? ie: copy down modules or at least suggest this is a pre-requisite.

This would also mean that ansible wouldn’t be an agentless solution as I would be installing extra components on my fleet of servers.

Very frustrated trying to understand how this is all meant to work

Thanks for your input.  
Kez

---

<div class="post-metadata">

**Author:** ![Igor\_Turovsky](https://avatars.discourse-cdn.com/v4/letter/i/cdc98d/32.png) [@Igor\_Turovsky](https://forum.ansible.com/u/Igor_Turovsky)\
**Post date:** [December 3, 2020, 11:39pm UTC](https://forum.ansible.com/t/working-with-windows/34276/4 "2020-12-03T23:39:14Z")

</div>

Hi Kez,

Win\_get\_url module with these parameters looks a bit strange. May be it should be win\_package?

чт, 3 дек. 2020 г., 10:04 Kez Halls \<[kezhalls@bigpond.net.au](mailto:kezhalls@bigpond.net.au)\>:

---

<div class="post-metadata">

**Author:** ![Kez\_Halls](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@Kez\_Halls](https://forum.ansible.com/u/Kez_Halls)\
**Post date:** [December 4, 2020, 2:14am UTC](https://forum.ansible.com/t/working-with-windows/34276/5 "2020-12-04T02:14:14Z")

</div>

Thanks. I did have win\_package there and changed it based on some feedback. forgot to change before I pasted in my post.  
Its still the same issue I have with win\_package.
