1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #!/bin/sh # Determine OS version sw_vers=`sw_vers -productVersion` for USER_TEMPLATE in "/System/Library/User Template"/* do defaults write "$USER_TEMPLATE"/Library/Preferences/com.apple.SetupAssistant DidSeeCloudSetup -bool TRUE defaults write "$USER_TEMPLATE"/Library/Preferences/com.apple.SetupAssistant GestureMovieSeen none defaults write "$USER_TEMPLATE"/Library/Preferences/com.apple.SetupAssistant LastSeenCloudProductVersion "$sw_vers" done for USER_HOME in /Users/* do USER_UID=`basename "$USER_HOME"` defaults write "$USER_HOME"/Library/Preferences/com.apple.SetupAssistant DidSeeCloudSetup -bool TRUE defaults write "$USER_HOME"/Library/Preferences/com.apple.SetupAssistant GestureMovieSeen none defaults write "$USER_HOME"/Library/Preferences/com.apple.SetupAssistant LastSeenCloudProductVersion "$sw_vers" chown "$USER_UID" "$USER_HOME"/Library/Preferences/com.apple.SetupAssistant.plist done |