Skip to content

Instantly share code, notes, and snippets.

View mallej's full-sized avatar

Jens Malessa mallej

  • Hamburg
View GitHub Profile
@mallej
mallej / ignore-softwareupdate.sh
Last active February 5, 2018 08:52
[macOS - Update] #macos #update #softwareupdate #macappstore #upgrade
# In order to block this update, without blocking the App Store, we are pushing the following script in a policy:
sudo softwareupdate --ignore "macOS"
sudo softwareupdate --ignore "macOS High Sierra"
sudo softwareupdate --ignore "macOS High Sierra Update"
sudo softwareupdate --ignore "macOS High Sierra 10.13.3 Update"
# If you need to allow the users to update, after testing, running the following script will reset the software update to allow this:
sudo softwareupdate --reset-ignored
@mallej
mallej / mdm.sh
Last active February 14, 2020 04:34
[re-add mdm profile] #jamf #mdm
# https://www.jamf.com/jamf-nation/discussions/20830/mdm-capable-users-how-to-add#responseChild157012
/usr/bin/profiles -R -p 00000000-0000-0000-A000-4A414D460003 (your MDM profile identifier here)
jamf manage
# -p A profile identifier used to locate the configuration or provisioning profile.
profiles -P
@mallej
mallej / add-recent-apps-to-dock.sh
Last active December 5, 2017 13:11
[Dock - Recent Apps] Add a Recent Applications Stack to the macOS Dock #dock #macos
defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'
killall Dock