I'm opening PowerShell
as Administrator.
I run:
Get-Package *notepad*
And PowerShell shows me Notepad++ (32-bit x86)
I then run:
Get-Package *notepad* | Uninstall-Package -Force
And PowerShell is not uninstalling Notepad++
I tried with a few programs, they are still all installed. Why?
EDIT: as you can see @m0lochwalker PowerShell is acting like the program was uninstalled.
Try on your environment, nothing gets uninstalled.
@Ranadip Dutta: Get-WmiObject -class Win32_Product
works for 32-bit only and doesn't return Notepad++ if it's 64-bit; Basically it doesn't return any 64-bit at all:
I need something more comprehensive that could work both with 32-bit and 64-bit
Get-WmiObject -class Win32_Product | select Name
and you will discover that a lot of your programs are missing