MacOS - eekbot/public GitHub Wiki
Blocking Device Enrollment Notficiation
Add these lines to your /etc/hosts file:
# Block Mac from reaching the domain iprofiles.apple.com
0.0.0.0 iprofiles.apple.com
Then, check the current enrollment profile:
sudo profiles show -type enrollment