Detect and Remove CCleaner in Powershell

preview_player
Показать описание
Detect and Remove CCleaner in Powershell

This is a neat little trick to detect CCleaner on a Windows operating system with powershell, then silently uninstall it using powershell.

Code Below:

------------------------------------------Copy----------------------------------------------------

Get-ItemProperty -Path HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* |
Where-Object DisplayName -eq CCleaner

----------------------------------------COPY----------------------------------------------

if (Get-ItemProperty -Path HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* |
Where-Object DisplayName -eq CCleaner -OutVariable Results) {
}

--------------------------------------Copy-----------------------------------------

Creation by Mike Frobbins

Join our forum
Рекомендации по теме
Комментарии
Автор

Why would you want to delete it though?

themechanic
Автор

What’s wrong with ccleaner? (Serious question)

RuschGaming
Автор

Why would there be CCleaner on your system if you didn't install it?

marco_evertus
Автор

Brian....will this also work for other programs if I change out the "CCleaner" to some other program name?

paulhaywood
Автор

Is Power Shell the new DOS? ..and can you plug in any name in those commands to get rid of other programs?

matttrotta
Автор

I've never found CCCleaner to be useful.

AnOfficialAndrewFloyd
Автор

Brian I had no idea this could be done! I can only imagine what else you can come up with and what other things you can magically make happen! Please keep sharing KK

thekellycorner
Автор

Thank You so much! legend! I played csgo and disconnected me about the malware in ccleaner that was hacked, and I copied this and I joined csgo at the last minute thanks hero!

Glushe
Автор

I have checked out CCleaner with process monitor, autoruns, process explorer.. the current upgrades seem to be working.. no hacks in there (from what i don't see).. Why would you want to get rid of it?

fryingflyingbeestudio
Автор

So Ccleaner isnt showing in control panel to begin with so have no option to uninstall. its on my system though. I run these lines of code, the first one reports nothing. Can I just delete all the files to get rid of it completely?

richeh
Автор

Thank you, I believe you just helped me solve an issue with a school project!

drahk
Автор

I think you should have explained the CCleaner hack in your video, so people will understand why you're removing it.

louscannon
Автор

This seems odd. Why would anyone want to remove CCleaner?

An.Individual
Автор

Can you check Chocolatey? Chocolatey is Linux like open source package manager for Windows. You can install and uninstall CCleaner package for example using Chocolatey Package Manager by running "choco install ccleaner" and "choco uninstall ccleaner" in cmd or powershell. You can install Chocolatey by copy/pasting command in cmd or powershell from the website. Also to install Chocolatey GUI, you can "choco install chocolateygui".

Xeno_Bardock
Автор

isnt ccleaner safe now, went downhill when they removed the 'rap'

lezbriddon
Автор

Why not use the arrow key to repeat the first command?

MichaelMacAllister
Автор

+britec09 Is there a reason you are deleting CCleaner from your computer? If so what is it please? Thanks!

jeffreyweeks
Автор

Very nice and useful! I hope you show us more tips and tricks with Powershell.

smitw
Автор

Sorry to say but this is a very insignificant video designed for wasting time of others. Your script for uninstalling ccleaner is doing nothing but running uninstall.exe of the ccleaner which you can do just using your mouse button if necessary anytime you wish.

tokyouser
Автор

People, this is a demonstration of how to use Power Shell to remove a program and Brian happened to choose CCleaner because the guy he mentioned already made the codes you need for Power Shell to remove CCleaner. Is not that something is wrong with CCleaner!

iTzDaNiiLo