mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 05:53:24 +00:00
os_mdm_require.yaml needs to be updated for macOS 11 #301
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @golbiga on GitHub.
/usr/bin/profiles status -type enrollment | /usr/bin/awk -F': ' 'END{print $2}' | /usr/bin/grep -c "Yes"will not work in macOS 11.The output of /usr/bin/profiles status -type enrollment is:
Enrolled via DEP: Yes
MDM enrollment: Yes (User Approved)
MDM server: https://MDMSERVER:8443/mdm/ServerURL
The check should be updated to:
/usr/bin/profiles status -type enrollment | /usr/bin/awk -F: '/MDM enrollment/ {print $2}' | /usr/bin/grep -c "Yes (User Approved)"This could also be used for Catalina if we want to go back.