# Unable to uninstall Notepad++ in Windows host

**URL:** <https://forum.ansible.com/t/unable-to-uninstall-notepad-in-windows-host/31592>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [November 4, 2019, 6:12pm UTC](https://forum.ansible.com/t/unable-to-uninstall-notepad-in-windows-host/31592 "2019-11-04T18:12:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikrant](https://avatars.discourse-cdn.com/v4/letter/v/cc9497/32.png) [@Vikrant](https://forum.ansible.com/u/Vikrant)\
**Post date:** [November 4, 2019, 6:12pm UTC](https://forum.ansible.com/t/unable-to-uninstall-notepad-in-windows-host/31592/1 "2019-11-04T18:12:56Z")

</div>

I’m unable to uninstall notepad++ in the Windows host:

- name: uninstall notepad++  
win\_package:  
path: ‘{{ notepadpp\_install\_dir }}\uninstall.exe’  
product\_id: ‘Notepad++\*’  
arguments: /S  
state: present

- name: uninstall notepad++  
win\_command: powershell.exe -ExecutionPolicy ByPass -File D:\un.ps1  
args:  
stdin: get-package notepad++\* | % { & $\_.Meta.Attributes[“UninstallString”] /S}

Every time I’m seeing the change but nothing happened on the host. can some please advise and help.

I’m using service account for this but able to install without any incident.
