# Uninstall Visual Studio 2015

**URL:** <https://forum.ansible.com/t/uninstall-visual-studio-2015/27722>\
**Category:** Ansible Project\
**Created:** [June 6, 2018, 4:47pm UTC](https://forum.ansible.com/t/uninstall-visual-studio-2015/27722 "2018-06-06T16:47:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpescatore](https://avatars.discourse-cdn.com/v4/letter/l/ccd318/32.png) [@lpescatore](https://forum.ansible.com/u/lpescatore)\
**Post date:** [June 6, 2018, 4:47pm UTC](https://forum.ansible.com/t/uninstall-visual-studio-2015/27722/1 "2018-06-06T16:47:03Z")

</div>

Hi all,  
I’m trying to automate an uninstall of Microsoft Visual Studio 2015.  
IN my playbook I have:

- name: VS2015 | Uninstall Visual Studio Professional With Updates 2015

win\_command:

path: ‘C:\ProgramData\Package Cache{68432bbb-c9a5-4a7b-bab3-ae5a49b28303}\vs\_professional.exe /uninstall /force’

\_raw\_params: ‘C:\ProgramData\Package Cache{68432bbb-c9a5-4a7b-bab3-ae5a49b28303}\vs\_professional.exe /uninstall /force’

However, when I run the play I get :

fatal: [100.126.255.206]: FAILED! =\> {

“changed”: false,

“cmd”: “C:\ProgramData\Package Cache\{68432bbb-c9a5-4a7b-bab3-ae5a49b28303}\vs\_professional.exe /uninstall /force”,

“msg”: “Exception calling "SearchPath" with "1" argument(s): "Could not locate the following executable C:\ProgramData\Package.exe"”,

“rc”: 2

}

Thus, I think I have the command incorrect. I have verified that if I directly click that exe in that path, the setup comes up which gives you that option to uninstall.

Anyone successfully gotten this to work?

Best,  
larry
