# win\_command or win\_shell error.

**URL:** <https://forum.ansible.com/t/win-command-or-win-shell-error/27753>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [June 9, 2018, 4:46am UTC](https://forum.ansible.com/t/win-command-or-win-shell-error/27753 "2018-06-09T04:46:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![doppalapudi\_saikumar](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@doppalapudi\_saikumar](https://forum.ansible.com/u/doppalapudi_saikumar)\
**Post date:** [June 9, 2018, 4:46am UTC](https://forum.ansible.com/t/win-command-or-win-shell-error/27753/1 "2018-06-09T04:46:45Z")

</div>

Hi,

I had tried running win\_command , had this error

fatal: [sql test 2]: FAILED! =\> {“changed”: true, “cmd”: “C:xxxxx.4P1\_x64.exe /s /v"/qn SILENT\_MODE=1 /Li C:xxxxxxInstall.log INSTALLDIR=\"c:\xxxxx\pDrive\" SVCUSERNAME="domain\uname" SVCUSERPASSWORD=xxxxxxx SVCCONFIRMUSERPASSWORD=xxxxxx IGNORE\_COMPMGMT\_RUNNING=1 SDW\_WEBSRV\_TCP\_PORT=808 SDW\_WEBSRV\_HTTP\_PORT=4094 SDW\_WEBSRV\_HTTPS\_PORT=4095 TRANSPORT\_SETTING\_ENABLE=1 DFM\_SERVER\_COMM\_PRT\_SELECTION=1 DFM\_SERVER\_COM\_PORT=8088 DFM\_SERVER\_USERNAME="domain\uname" DFM\_SERVER\_PASSWORD=xxxxxx SDW\_ESXSVR\_ENABLE=0 SDW\_SMVISVR\_ENABLE=0"”, “delta”: “0:00:16.430989”, “end”: “2018-06-09 04:38:22.010828”, “msg”: “non-zero return code”, “rc”: 1618, “start”: “2018-06-09 04:38:05.579838”, “stderr”: “”, “stderr\_lines”: , “stdout”: “”, “stdout\_lines”: }

Playbook:

- hosts: windows  
tasks:

- name: install  
win\_command: “command was in the error log. please refer above”

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [June 11, 2018, 10:11am UTC](https://forum.ansible.com/t/win-command-or-win-shell-error/27753/2 "2018-06-11T10:11:56Z")

</div>

Have you tried using win\_package? it can install .exe files as well as .msi

[https://docs.ansible.com/ansible/latest/modules/win\_package\_module.html](https://docs.ansible.com/ansible/latest/modules/win_package_module.html)
