r/techsupport • • 12h ago

Open | Windows Need to delete a program via Powershell

On a friend's laptop I downloaded a program that comes with its own uninstall .exe. I need to delete the program but Windows decided the second program (Uninstall) by default is suspect. So I cannot delete the program the normal way. I thought to use the Terminal window and began with the command "winget list". In the resulting list the word winget is not beside the program's name so I assume I cannot use winget to do the delete.

Anyone here know other commands to do deletions from the Powershell?

This situation is is bizarre because Windows let me download and use the program no problem, but it won't let me delete it? Seems very insecure to me!

(To add to my difficulties in troubleshooting, the laptop was not in a language I speak. And I was reluctant to try steps I would try on my own computer. In other words I did not want to click or instruct anything that might break things!)

Thanks!

3 Upvotes

6 comments sorted by

4

u/gbushprogs 12h ago

Revo uninstaller will take care of it.

2

u/xXBalinorXx 12h ago

Bulk Crap Uninstaller might work. Standard warning: You do need to be careful that you don't uninstall critical system apps. BCI does have safeguards in place, but they can be overridden. Should also scan teh registry for entries too tied to the program.

1

u/jstar77 11h ago

Try this in PowerShell.

Get-PackageName  
#note the exact name of the application
Get-Package -Name "Name of package" | Uninstall-Package

2

u/jstar77 11h ago

Also Consider whitelisting the unistall.exe file (if you are certain it's not malicious, uploading it to virus total and having it scan the file is a good idea).

Add-MpPreference -ExclusionPath "C:\Path to uninstall executable"

1

u/Superfly_senior 11h ago

Downloads have a habit of needing Unblock-File <file path> or through its GUI properties before it can be ran.

That’s my guess since you downloaded it, it’s an exe, and the suspect comment.

1

u/Allen_Ludden 7h ago

if windows doesn't like the uninstaller but you trust the source just disable the antivirus briefly and run the uninstaller.