Macbook pro 2021跳配置锁
1.什么是配置锁?
配置锁顾名思义就是美国一些企业和公司向苹果工公司定制采购的机器,这些机器一般供应内部员工使用,这种机器和正常机没有什么区别,也是无锁三网机器,功能和正常机器一摸一样!
2.配置锁能入手吗?
答案肯定是可以的,要不然你也不会看到这篇文章不是。首先呢要确定你要购买的配置锁是国外的呢,还是国内的,注意这里有本质区别,国外的例如亚马逊的配置锁机器都是企业监管机,可以跳过监管。而国内的呢,注意国内的全都是租机,注意千万千万不要入手国内的配置锁,会被锁!!!!!
3.跳过配置锁
买到一台配置锁之后,我们首先要还原抹除之后,重装系统这里不再赘述,大家可以参考b站以及其他文档阅读。
我这里主要讲一下U盘制作macos系统,进行安装macos ventura。https://support.apple.com/zh-cn/HT201372 这里有apple官方文档,大家可以参考。这里我正好手头一另一个mac电脑,我使用的是apple store下载对应安装包制作。
也可参考b站视频 https://www.bilibili.com/video/BV1Q8411y7T7/?spm_id_from=333.880.my_history.page.click
注意事项:
- 需要手头有16GB及以上的u盘
- 需要在apple store上下载完成后才能执行,引导u盘制作指令。sudo /Applications/Install\ macOS\ Ventura.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
- u盘名字切记不要使用中文字符
4.u盘制作完成后
u盘制作完成后,可以直接参考apple官方文档,选中制作的u盘进行安装即可,https://support.apple.com/zh-cn/HT201372。
5.重头戏来了
跳过配置锁,我这里也是参考了其他文章,我直接贴出来。大家也可以去参考这个文档反正都差不多的。https://zhuanlan.zhihu.com/p/659458982?utm_id=0
第一步:重装系统
长按电源键关机,再长按开机进入恢复模式,抹掉硬盘,重启后安装系统。
**注意事项:格式化Macintosh HD盘时,请注意格式化完成后磁盘的大小应该在37k,如果不是此大小请使用磁盘工具修复!!!!**
第二步:执行代码
系统安装完重启只后,到连WiFi时长按电源键关机。再长按开机进入恢复模式,打开Safari,输入本篇文章的地址,复制以下代码:
#!/bin/bash
RED='\033[1;31m'
GRN='\033[1;32m'
BLU='\033[1;34m'
YEL='\033[1;33m'
PUR='\033[1;35m'
CYAN='\033[1;36m'
NC='\033[0m'
echo -e "${CYAN}*-------------------*---------------------*${NC}"
echo -e "${YEL}* Check MDM - Skip MDM Auto for MacOS by *${NC}"
echo -e "${RED}* SKIPMDM.COM *${NC}"
echo -e "${RED}* Phoenix Team *${NC}"
echo -e "${CYAN}*-------------------*---------------------*${NC}"
echo ""
PS3='Please enter your choice: '
options=("Autoypass on Recovery" "Reboot")
select opt in "${options[@]}"; do
case $opt in
"Autoypass on Recovery")
echo -e "${GRN}Bypass on Recovery"
if [ -d "/Volumes/Macintosh HD - Data" ]; then
diskutil rename "Macintosh HD - Data" "Data"
fi
echo -e "${GRN}Create a new user / Tạo User mới"
echo -e "${BLU}Press Enter to continue, Note: Leaving it blank will default to the automatic user / Nhấn Enter để tiếp tục, Lưu ý: có thể không điền sẽ tự động nhận User mặc định"
echo -e "Enter the username (Default: Apple) / Nhập tên User (Mặc định: Apple)"
read realName
realName="${realName:= Apple}"
echo -e "${BLUE}Nhận username ${RED}WRITE WITHOUT SPACES / VIẾT LIỀN KHÔNG DẤU ${GRN} (Mặc định: Apple)"
read username
username="${username:=Apple}"
echo -e "${BLUE}Enter the password (default: 1234) / Nhập mật khẩu (mặc định: 1234)"
read passw
passw="${passw:=1234}"
dscl_path='/Volumes/Data/private/var/db/dslocal/nodes/Default'
echo -e "${GREEN}Creating User / Đang tạo User"
# Create user
dscl -f "$dscl_path" localhost -create "/Local/Default/Users/$username"
dscl -f "$dscl_path" localhost -create "/Local/Default/Users/$username" UserShell "/bin/zsh"
dscl -f "$dscl_path" localhost -create "/Local/Default/Users/$username" RealName "$realName"
dscl -f "$dscl_path" localhost -create "/Local/Default/Users/$username" RealName "$realName"
dscl -f "$dscl_path" localhost -create "/Local/Default/Users/$username" UniqueID "501"
dscl -f "$dscl_path" localhost -create "/Local/Default/Users/$username" PrimaryGroupID "20"
mkdir "/Volumes/Data/Users/$username"
dscl -f "$dscl_path" localhost -create "/Local/Default/Users/$username" NFSHomeDirectory "/Users/$username"
dscl -f "$dscl_path" localhost -passwd "/Local/Default/Users/$username" "$passw"
dscl -f "$dscl_path" localhost -append "/Local/Default/Groups/admin" GroupMembership $username
echo "0.0.0.0 deviceenrollment.apple.com" >>/Volumes/Macintosh\ HD/etc/hosts
echo "0.0.0.0 mdmenrollment.apple.com" >>/Volumes/Macintosh\ HD/etc/hosts
echo "0.0.0.0 iprofiles.apple.com" >>/Volumes/Macintosh\ HD/etc/hosts
echo -e "${GREEN}Successfully blocked host / Thành công chặn host${NC}"
# echo "Remove config profile"
touch /Volumes/Data/private/var/db/.AppleSetupDone
rm -rf /Volumes/Macintosh\ HD/var/db/ConfigurationProfiles/Settings/.cloudConfigHasActivationRecord
rm -rf /Volumes/Macintosh\ HD/var/db/ConfigurationProfiles/Settings/.cloudConfigRecordFound
touch /Volumes/Macintosh\ HD/var/db/ConfigurationProfiles/Settings/.cloudConfigProfileInstalled
touch /Volumes/Macintosh\ HD/var/db/ConfigurationProfiles/Settings/.cloudConfigRecordNotFound
echo -e "${CYAN}------ Autobypass SUCCESSFULLY / Autobypass HOÀN TẤT ------${NC}"
echo -e "${CYAN}------ Exit Terminal , Reset Macbook and ENJOY ! ------${NC}"
break
;;
"Disable Notification (SIP)")
echo -e "${RED}Please Insert Your Password To Proceed${NC}"
sudo rm /var/db/ConfigurationProfiles/Settings/.cloudConfigHasActivationRecord
sudo rm /var/db/ConfigurationProfiles/Settings/.cloudConfigRecordFound
sudo touch /var/db/ConfigurationProfiles/Settings/.cloudConfigProfileInstalled
sudo touch /var/db/ConfigurationProfiles/Settings/.cloudConfigRecordNotFound
break
;;
"Disable Notification (Recovery)")
rm -rf /Volumes/Macintosh\ HD/var/db/ConfigurationProfiles/Settings/.cloudConfigHasActivationRecord
rm -rf /Volumes/Macintosh\ HD/var/db/ConfigurationProfiles/Settings/.cloudConfigRecordFound
touch /Volumes/Macintosh\ HD/var/db/ConfigurationProfiles/Settings/.cloudConfigProfileInstalled
touch /Volumes/Macintosh\ HD/var/db/ConfigurationProfiles/Settings/.cloudConfigRecordNotFound
break
;;
"Check MDM Enrollment")
echo ""
echo -e "${GRN}Check MDM Enrollment. Error is success${NC}"
echo ""
echo -e "${RED}Please Insert Your Password To Proceed${NC}"
echo ""
sudo profiles show -type enrollment
break
;;
"Exit")
echo "Rebooting..."
reboot
break
;;
*) echo "Invalid option $REPLY" ;;
esac
done
然后退出Safari,打开终端,粘贴之前复制的代码回车,然后选择1,一路回车,重启进入系统。回车三次。
第三步:创建账户
上面这段代码会创建一个名为apple,密码为1234的账户,但是这个账户不能进行后续操作,所以需要创建一个新账户,新账户必须是管理员,然后登录新账户,删除老账户。
注意事项:这里如果输入密码一直提示错误的话需要进入系统,登陆apple用户密码是1234,新建一个管理员账户然后再删除apple用户即可。
第四步:关闭SIP(系统完整性保护)
重启进入恢复模式,打开终端,输入csrutil disable,然后重启
第五步:执行命令
依次执行下面5条命令(这里已经可以进入系统,打开终端执行命令了,tab键可以补齐~~)
sudo rm /var/db/ConfigurationProfiles/Settings/.cloudConfigHasActivationRecord
sudo rm /var/db/ConfigurationProfiles/Settings/.cloudConfigRecordFound
sudo touch /var/db/ConfigurationProfiles/Settings/.cloudConfigProfileInstalled
sudo touch /var/db/ConfigurationProfiles/Settings/.cloudConfigRecordNotFound
sudo launchctl disable system/com.apple.ManagedClient.enroll
执行命令检查是否成功:文章来源:https://www.toymoban.com/news/detail-775100.html
sudo profiles show -type enrollment
如果出现类似错误就说明大功告成了:Error fetching Device Enrollment configuration: (34000) Error Domain=MCCloudConfigurationErrorDomain Code=34000 “The device failed to request configuration from the cloud.” UserInfo={NSLocalizedDescription=The device failed to request configuration from the cloud., CloudConfigurationErrorType=CloudConfigurationFatalError}
文章来源地址https://www.toymoban.com/news/detail-775100.html
到了这里,关于MacOS ventura跳过配置锁的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!