下面的脚本通过对所有语言用户模板修改/创建plist文件来忽略iCloud安装的步骤。
if [ `sw_vers -productVersion | awk -F. '{ print $2 }'` -ge 7 ]
then
for USER_TEMPLATE in "/System/Library/User Template"/*
do
defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant DidSeeCloudSetup -bool TRUE
#################################################################################
# Uncomment below if it is desired to remove the Gesture movie on first login #
#################################################################################
# defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant GestureMovieSeen none
done
fi