Skip to content

Commit

Permalink
Create FindMyMacStatus.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
trevoedwards authored Jun 5, 2023
1 parent 282abee commit 23a32f9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ComputerExtensionAttributes/FindMyMacStatus.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
!/bin/bash
#Displays whether Find My Mac and, by extension, Activation Lock are enabled/disabled on the computer.

fmmToken=$(/usr/sbin/nvram -x -p | /usr/bin/grep fmm-mobileme-token-FMM)

if [ -z "$fmmToken" ];
then echo "<result>Disabled</result>"
else echo "<result>Enabled</result>"
fi

0 comments on commit 23a32f9

Please sign in to comment.