如何从 macOS 删除自动设备注册配置文件

ale*_*nbj 5 macos profile mdm

首先,展示我的个人资料。

\n
sudo profiles show -type enrollment\n
Run Code Online (Sandbox Code Playgroud)\n

其次\xef\xbc\x8c删除所有配置文件

\n
sudo profiles remove -all \n
Run Code Online (Sandbox Code Playgroud)\n

出现错误:

\n
profiles: There are profiles installed that marked non-removable\n
Run Code Online (Sandbox Code Playgroud)\n

ale*_*nbj 8

我在这里找到了答案。 https://graffino.com/til/UmkCdmEx7v-remove-a-non-removable-mdm-profile-from-macos-without-a-complete-wipe

  1. 将 Mac 引导至恢复模式(在启动过程中按住 command+R)。
  2. 转到“实用程序”菜单并打开“终端”并键入:csrutil disable。这将禁用 SIP(​​系统完整性保护)。
  3. 重新启动进入操作系统。
  4. 打开集成终端并输入:
cd /var/db/ConfigurationProfiles
rm -rf *
mkdir Settings
touch Settings/.profilesAreInstalled
Run Code Online (Sandbox Code Playgroud)
  1. 重启。
  2. 将 Mac 引导至恢复模式(在启动过程中按住 command+R)。
  3. 转到“实用程序”菜单并打开“终端”并键入:csrutil enable。这将重新启用 SIP。
  4. 重新启动进入操作系统。