# Win\_psexec help

**URL:** <https://forum.ansible.com/t/win-psexec-help/34079>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [October 21, 2020, 8:03pm UTC](https://forum.ansible.com/t/win-psexec-help/34079 "2020-10-21T20:03:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roman\_DeHonney](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@Roman\_DeHonney](https://forum.ansible.com/u/Roman_DeHonney)\
**Post date:** [October 21, 2020, 8:03pm UTC](https://forum.ansible.com/t/win-psexec-help/34079/1 "2020-10-21T20:03:15Z")

</div>

I am attempting to run an .exe that I created using Auto IT. It simply makes two clicks on a program to perform a test and logs it. It works fine if I am logged into the host and double click the exe.

I need to run this via ansible but I keep getting false positives. I am using the win\_psexec module.  
Ansible runs psexec with no problem and says it launches the exe successfully in the awx log.  
When I log on to the host and check the log from the Exe, it has not been ran.

Here is the task being ran

- name: Run myexe  
win\_psexec:  
command: Myexe.exe  
interactive: yes  
system: yes

Any ideas on whats going on ?

---

<div class="post-metadata">

**Author:** ![Graham\_Mainwaring](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Graham\_Mainwaring](https://forum.ansible.com/u/Graham_Mainwaring)\
**Post date:** [October 21, 2020, 8:05pm UTC](https://forum.ansible.com/t/win-psexec-help/34079/2 "2020-10-21T20:05:54Z")

</div>

Perhaps it’s running in a different user context than you expect?

---

<div class="post-metadata">

**Author:** ![Mike\_Charchuk](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@Mike\_Charchuk](https://forum.ansible.com/u/Mike_Charchuk)\
**Post date:** [October 21, 2020, 8:20pm UTC](https://forum.ansible.com/t/win-psexec-help/34079/3 "2020-10-21T20:20:19Z")

</div>

I have always had to put the fully qualified path to the windows executable in.

---

<div class="post-metadata">

**Author:** ![Roman\_DeHonney](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@Roman\_DeHonney](https://forum.ansible.com/u/Roman_DeHonney)\
**Post date:** [October 22, 2020, 2:25pm UTC](https://forum.ansible.com/t/win-psexec-help/34079/4 "2020-10-22T14:25:09Z")

</div>

So it seems whenever I attempt the fqpn will simply just hang. Not sure if theres a certain sytax I am missing?

here is the play

win\_psexec:  
command: d:\myexe.exe  
interactive: yes  
system: yes
