Posted on 07-13-2020 02:04 PM
We've ben finding that Apple's pre-loaded apps (Numbers, Pages, garage band, etc) are flagging as having updates, despite the App Store being locked down and the machine's enrolled in DEP. What's the easiest way to remove those preinstalled apps so they don't prompt for updates in the future?
I can do a simple script to remove the .app form /Applications, but I'm sure there's PLISTS and other files stashed all over.
Posted on 07-13-2020 03:37 PM
#!/bin/bash
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin export PATH
# set -xv; exec 1>>/tmp/delete_PKNGBiMTraceLog 2>&1
#----------------------------------------------------------------------------------------------------------------------------------
# delete_PKNGBiM
# Copyright (c) 2017 Apple Inc.
#
#
# This script deletes Pages, Keynote, Numbers, GarageBand and iMovie from the Applications folder
#
#-------------------------------------------------------------MAIN-------------------------------------------------------------------
# execute
# Version 1.0.0, 08-24-2017
declare -a apps_a
apps_a[0]="Pages.app"
apps_a[1]="Keynote.app"
apps_a[2]="Numbers.app"
apps_a[3]="GarageBand.app"
apps_a[4]="iMovie.app"
# loop through the apps
for i in "${apps_a[@]}"; do
filePath="/Applications/${i}"
# if the app exists, delete it
if [[ -e "${filePath}" ]]; then
rm -rf "${filePath}"
fi
done
exit 0
Posted on 12-14-2021 08:52 AM
I'm new to this, how do I run this kind of script in my Jamf admin?
I want to make room on our managed iPads and we don't use GarageBand anyway.
Posted on 01-25-2022 09:29 AM
This is for macOS
Posted on 07-14-2020 07:13 AM
@Asnyder awesome thank you! I will give it a whirl.