# Install software to Windows machine...

**URL:** <https://forum.ansible.com/t/install-software-to-windows-machine/21618>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [May 31, 2016, 8:54pm UTC](https://forum.ansible.com/t/install-software-to-windows-machine/21618 "2016-05-31T20:54:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaron.trujillo](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@aaron.trujillo](https://forum.ansible.com/u/aaron.trujillo)\
**Post date:** [May 31, 2016, 8:54pm UTC](https://forum.ansible.com/t/install-software-to-windows-machine/21618/1 "2016-05-31T20:54:38Z")

</div>

Thanks for all your help earlier, it was greatly appreciated.

Now I am attempting to automate installation of some software across all my Windows VM’s . I have found some documentation on the web but am still having trouble. At this point it is getting hung up on the last line.  
The playbook looks like this…

---

<div class="post-metadata">

**Author:** ![Johannes\_Kastl](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Post date:** [June 1, 2016, 5:19pm UTC](https://forum.ansible.com/t/install-software-to-windows-machine/21618/2 "2016-06-01T17:19:14Z")

</div>

I think I remember reading that in this case you should split the  
task: download the file and then install it.

Maybe split the task even further, as connecting to a target via  
ansible and then connection to yet another server to get the file  
might pose a problem.

So:  
Get the file on the controller  
Push the file to the target  
Install the file.

Just an idea,  
Johannes

---

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [June 2, 2016, 6:39pm UTC](https://forum.ansible.com/t/install-software-to-windows-machine/21618/3 "2016-06-02T18:39:22Z")

</div>

is “S:” a local or mapped drive?

---

<div class="post-metadata">

**Author:** ![Johannes\_Kastl](https://avatars.discourse-cdn.com/v4/letter/j/bbe5ce/32.png) [@Johannes\_Kastl](https://forum.ansible.com/u/Johannes_Kastl)\
**Post date:** [June 2, 2016, 7:04pm UTC](https://forum.ansible.com/t/install-software-to-windows-machine/21618/4 "2016-06-02T19:04:38Z")

</div>

How should I know, it's your machine... 😉

Just try and log into the machine, copy the file from S:\... to  
somewhere on C: (where your user has the rights) and then try to run  
your playbook with this path...

Johannes

---

<div class="post-metadata">

**Author:** ![gdelgado2](https://avatars.discourse-cdn.com/v4/letter/g/cdc98d/32.png) [@gdelgado2](https://forum.ansible.com/u/gdelgado2)\
**Post date:** [June 4, 2016, 3:05am UTC](https://forum.ansible.com/t/install-software-to-windows-machine/21618/5 "2016-06-04T03:05:46Z")

</div>

Try the below as long as you have your WinRm configured correctly within it should use those to connect to your Windows hosts. The below register the path of S:\ClaimWin to that variable you can use that later for any purpose you need. It then copies the file locally onto c/temp/ then installs it once the installs complete it removes it from c/temp.

---

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [June 4, 2016, 5:56pm UTC](https://forum.ansible.com/t/install-software-to-windows-machine/21618/6 "2016-06-04T17:56:42Z")

</div>

The reason I’m asking if S is local or shared is that if its a mapped network drive and you’re using Kerberos authentication it basically won’t work out of the box, because of limitations around double-hop remoting. You can either use trust for delegation, or switch to another (basic or NTLM auth scheme).
