Unable to uninstall a software with Powershell admin session
I am trying to uninstall some softwares with RMM (powershell admin) but I am not able as the software is not showing up with this command:
$packages = Get-Package | Where-Object { $_.Name -like "webex" }
But on the device I can do so with powershell opened with user session.
Also it doesn't show up when I run the script above on powershell as admin on the device.
I tried to use regestry way to uninstall it with Get-ChildItem the software shows up but the process complete with no error, with the script bellow but it doesn't uninstall the software.
$program = Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object {$_.DisplayName -match "webex" } | Select-Object -Property DisplayName, Uninstallstring, QuietUninstallString
start-process cmd.exe -argumentlist "/c ""$($program.quietUninstallString) /norestart""" -Wait