Upload this script to Jamf, then add it to a policy and use the following parameters:
- Parameter 4: App Name, e.g.
TeamViewer
orTeamViewer.app
(either will work) - Parameter 5: package receipt ID, if you want the script to remove the package receipt, e.g.
com.teamviewer.teamviewer
.
Parameters 6 to 11 can be used to forget additional packages if required.
To find out the package receipt IDs, install the application on a test device from Jamf, and then run pkgutil --pkgs | grep -i teamviewer
, substituting a name that is likely to be in the package receipt name.
Note, this script does not delete Jamf's own package receipts (I never use those, so never really considered using them).
For anyone else wondering about this I answered my own question haha: https://www.jamf.com/jamf-nation/articles/146/script-parameters
Yep, the first 3 parameters are used by Jamf and your first available custom parameter is $4. Thanks for this Graham!