This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Check if a machine was enrolled via DEP (10.13+) | |
# Show whether a machine has a device enrollment profile (DEP) present (10.13.0+), | |
# and if the MDM enrollment is user approved (10.13.4+) | |
/usr/bin/profiles status -type enrollment | |
# Checking for a DEP profile on macOS | |
# Display the DEP profile for a macOS device in 10.13 and above: | |
sudo /usr/bin/profiles show -type enrollment |