You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey I'm just wondering if anybody has tried to use Uninstaller with Intune? Intune cannot send command line parameters to scripts, but some small tweaks to the script allowed me to hardcode the label of the app you want to uninstall.
The script runs and works when I run it manually from a shell, if I push it from Intune it does not run however. I can see it being downloaded and an execution attempt is made, but the app is not uninstalled and nothing shows in the appAssassin.log. If I add something simple to the very start of the script, say mkdir /tmp/mytest the directory is not created, so it seems ZSH might not like something in the script so will not execute it at all. If I strip out everything from the script passed
printlog "Uninstaller started - version $LAST_MOD_DATE (build: $BUILD_DATE)"
then the script will execute and I can see an entry in appAssassin.log.
When the script fails to execute I see a message about 'sudo usage' in the Intune MDM Agent logs, which I suspect is related? FWIW I'm having Intune run the script as root.
Maybe install the uninstaller script local on your mac. Then create a separate small script with only the uninstall command and the parameter. You can try to execute that small script from intune. Or try this approach with a payload free installer package that 'wraps' this script in an empty package.
I second the suggestion from @macbofh . I work with WorkspaceONE UEM, and large scripts like installomator or uninstaller are not supported. We install these scripts into /usr/local/uninstaller/uninstaller.sh and call them from small scripts we configure with UEM.
Hey I'm just wondering if anybody has tried to use Uninstaller with Intune? Intune cannot send command line parameters to scripts, but some small tweaks to the script allowed me to hardcode the label of the app you want to uninstall.
The script runs and works when I run it manually from a shell, if I push it from Intune it does not run however. I can see it being downloaded and an execution attempt is made, but the app is not uninstalled and nothing shows in the appAssassin.log. If I add something simple to the very start of the script, say
mkdir /tmp/mytest
the directory is not created, so it seems ZSH might not like something in the script so will not execute it at all. If I strip out everything from the script passeduninstaller/uninstaller.sh
Line 1245 in 27b6d37
When the script fails to execute I see a message about 'sudo usage' in the Intune MDM Agent logs, which I suspect is related? FWIW I'm having Intune run the script as root.
Whereas here is a log of a successful run (when I remove everything after line 1245) -
Any ideas?
The text was updated successfully, but these errors were encountered: