Detect and Remove CCleaner in Powershell

Channel:
Subscribers:
866,000
Published on ● Video Link: https://www.youtube.com/watch?v=59c-3c2DgrY



Duration: 2:58
11,803 views
353


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) {
& "$($Results.InstallLocation)\uninst.exe" /S
}

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

Creation by Mike Frobbins
http://mikefrobbins.com/2017/09/18/detect-the-presence-of-and-remove-ccleaner-with-powershell/


Join our forum
http://www.briteccomputers.co.uk/forum







Tags:
Detect and Remove CCleaner in Powershell
Remove CCleaner
Uninstall CCleaner
Powershell
Windows 10
Windows 8
Windows 8.1
Windows 7
uninstall ccleaner in powershell
Silent uninstall
Silent
silently uninstall
Uninstall
Remove
Britec
How to
Tutorial
Guide
Removing CCleaner through script
Scritp
Removing
Install