Hi Folks,
Got a good question, in need of a very good answer.
I currently have the need to remove CCleaner due to the malware payload of recent my bosses have decided to blacklist it all together.
I could click uninstall manually but sadly my fingers or mouse will likely fall apart of suffer a crap clicking 3K+ times & now i am looking for a easier way to uninstall all version of it in a more automatic method (this will prove very useful for other software in future).
btw, i can't see ccleaner in my windows software inventory list (but i can see everything else, likely a bug and a case already logged).
Solved! Go to solution.
For Windows go to Systems Manager/Command Line. Select all Windows machines.
Now the bit I am not sure of. Try this:
C:\Program Files\CCleaner\uninst.exe /S
Failing that, try using "msiexec /u" and put in whatever package name CCleaner uses.
For Windows go to Systems Manager/Command Line. Select all Windows machines.
Now the bit I am not sure of. Try this:
C:\Program Files\CCleaner\uninst.exe /S
Failing that, try using "msiexec /u" and put in whatever package name CCleaner uses.
That was good lead. i used the below,, thou it timed out on majority of systems.
"C:\Program Files\CCleaner\uninst.exe" /S
For those who want to do it via powershell (intune should have this as beta feature)
# Checking Presence of CCleaner Get-ItemProperty -Path HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object DisplayName -match CCleaner # Stopping CCleaner64 & CCleaner running process, this will have errors if it is not running. keep calm and carry on stop-process -name CCleaner64 -force stop-process -name CCleaner -force # Starting uninstaller if (Get-ItemProperty -Path HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object DisplayName -match CCleaner -OutVariable Results) { & "$($Results.InstallLocation)\uninst.exe" /S } # Removing install folder, this should prevent even if uninstall failed Remove-Item "C:\Program Files\CCleaner" -Force # Checking Presence of CCleaner Get-ItemProperty -Path HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object DisplayName -match CCleaner
It may have timed out if the uninstall took longer than 45s - but still have completed the uninstall.
in which i have no visibility for (Completed/Failed/Timeout), one of the caveats for Meraki MDM.
I do have a case logged since ccleaner is shown in "program & features" but not the returned in the CLI which was used to capture.
But this section is really cool..