Category filter
Script to check if Find My Mac is enabled on Mac
Find My Mac is an Apple service that helps users track or locate their Mac. It’s essential to have this security feature enabled to safeguard any critical corporate/personal data in case the device is lost or stolen. Using Hexnode, you can remotely Execute Custom Scripts to check if ‘Find My Mac’ is set up on your macOS devices.
Check if Find My Mac is set up
1 2 3 4 5 6 7 8 9 10 |
#!/bin/sh fmmToken=$(/usr/sbin/nvram -x -p | /usr/bin/grep fmm-mobileme-token-FMM) if [ -z "$fmmToken" ]; then echo "<result>Not Set</result>" else echo "<result>Set</result>" fi |
The above script will return the output ‘Set’ if ‘Find My Mac’ is enabled and ‘Not Set’ if disabled.
Need more help?