Skip to content

Instantly share code, notes, and snippets.

@a7ul
Last active September 23, 2024 16:25
Show Gist options
  • Save a7ul/59559fe18db69623aae7692c5481cfce to your computer and use it in GitHub Desktop.
Save a7ul/59559fe18db69623aae7692c5481cfce to your computer and use it in GitHub Desktop.
removing all restrictions on jamf managed macos device - Provided you have root access.

REMOVE JAMF RESTRICTIONS ON MAC

REMOVE ONLY RESTRICTIONS

sudo jamf removeMDMProfile removes all restrictions

sudo jamf manage brings back all restrictions and profiles

REMOVE ALL RESTRICTIONS AND DISABLE JAMF BINARIES WHILE KEEPING YOUR ACCESS TO VPN AND OTHER SERVICES

sudo jamf removeMDMProfile removes all restrictions

cd /usr/local/jamf/ this is where jamf binary lives

mkdir backup

mv jamf jamfAgent backup/ keeping a backup of binaries if something goes wrong

Now you need to create this file at /usr/local/jamf/jamf

Add the following content

#!/bin/sh
echo 'dummy' > /dev/null

finally give it the permission

sudo chmod a+x /usr/local/jamf/jamf

Thats it you are done!

restart your laptop and you will no longer be tracked and no restrictions but you will have access to all vpn services

Incase you want to go back just restore original binaries and do

sudo jamf manage

@tuhulab
Copy link

tuhulab commented Feb 21, 2024

If your cooperate's jamf server is behind a firewall like mine (not accessible through usually Internet), you shouldn't try this. After sudo jamf removeMDMProfile, I cannot sudo jamf manage it anymore, because the machine cannot find the server :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment