Force Uninstall Apps from Windows 10 PowerShell

Not every app is worth keeping in Windows 10. But while is a straight-forward way to remove an app, users prefer not using any alternative ways to get the job done. But when we talk about uninstalling stock programs in Windows 10, then PowerShell is what we use mostly.

Many users have complained about “Windows 10 PowerShell will not uninstall apps” error. This issue can be caused by a new update or maybe your OS is trying to keep you from uninstalling default apps. Either way, if you are sure that you want to remove a utility from your OS, I’m here to help. I’ll tell you a way to Force Uninstall Apps from Windows 10 PowerShell. Let’s see how it’s done.

FIX USER PROFILE NOT IN REGISTRY ON WINDOWS 10

2 Ways to Force Uninstall Apps from Windows 10 PowerShell

Use CMDLET Get-Package Command

Step 1: Press Windows + X button and click on the Windows PowerShell (Admin) option. This will open the PowerShell utility on your OS.

Force Uninstall Apps from Windows 10 PowerShell

Step 2: Now execute the Get-WmiObject -Class Win32_Product | Select-Object -Property Name in the program’s interface. That’ll get the list of installed apps on your PC/Laptop.

Force Uninstall Apps from Windows 10 PowerShell

Step 3: If the above-provided command doesn’t work to help you locate your desired app, just run this command:

Get-Package -Provider Programs -IncludeWindowsInstaller -Name “App”

Change the “App” with your desired utility’s name.

Step 4: Now to map an app’s variable use the following command:

$MyApp = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq “Office 16”}

You can change the “Office 16” name with whatever app you want.

Force Uninstall Apps from Windows 10 PowerShell

Step 5: At last, use $MyApp.Uninstall() command to remove the utility from your device.

A Different Approach to Uninstall Windows 10 Apps via PowerShell

If the above-provided method doesn’t work at all for uninstalling Windows 10 Apps, then there’s another workaround for you. I know if you are willing to uninstall an app, then you’ll know about its name. In that case, just execute the following commands in Windows 10 PowerShell:

For 64-bit OS

$uninstall64 = gci “HKLM:SOFTWAREMicrosoftWindowsCurrentVersionUninstall” | foreach { gp $_.PSPath } | ? { $_ -match “SOFTWARE NAME” } | select UninstallString

if ($uninstall64) { $uninstall64 = $uninstall64.UninstallString -Replace “msiexec.exe”,”” -Replace “/I”,”” -Replace “/X”,””

$uninstall64 = $uninstall64.Trim()

Write “Uninstalling…” 

start-process “msiexec.exe” -arg “/X $uninstall64 /qb” -Wait}

For 32-bit OS

$uninstall32 = gci “HKLM:SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall” | foreach { gp $_.PSPath } | ? { $_ -match “SOFTWARE NAME” } | select UninstallString

if ($uninstall32) { $uninstall32 = $uninstall32.UninstallString -Replace “msiexec.exe”,”” -Replace “/I”,”” -Replace “/X”,””

$uninstall32 = $uninstall32.Trim()

Write “Uninstalling…” 

start-process “msiexec.exe” -arg “/X $uninstall32 /qb” -Wait}

Conclusion

Still unable to Force Uninstall Apps from Windows 10 PowerShell? If yes, then you need to know that some apps are added to let your OS work appropriately. Meaning, if the system allows you to uninstall it, then your OS might get corrupted or starts to work inappropriately. So don’t try to remove such utilities, and let them be.

That’s all, keep visiting WindowsBoy for further guides.

Leave a Comment