Relatively new user to the tool but have used sucessfully to both install and uninstall apps via Intune.
We have an app that users have installed themselves without needing admin rights (in to user profile/app data) and we want to remove it. However when attempting via PSADT or just add/remove programs the same app required admin rights for removal.
So running the Uninstall-adtapplication as user finds the app but then complains it needs admin to uninstall
Running as admin would therefore fix this but then running as admin/system cannot find the application.
Is there an easy way to detect the app for the logged in user but then run the uninstallation part as system/admin?
Many thanks
I've seen this before on some of our apps.
This is sadly down to vendors not acknowledging that security best practice means that normal users do not have admin rights on their device, this causes their customers being unable to properly manage the vendors badly written application.
Which app is this?
I know the best method is to have applocker so people cannot install anything other than through approved channels but thats a different topic but would like to pull it off any that have installed it.
Unfortunately its approx 50 users so I'd need to make it user independent but can possibly do something to loop through the user profiles on the device possibly. I was going to try using the get logged on user function in PSADT but don't think it would pick up the user when run as system.