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