I noticed that after a patch upgrade that the stupid iCloud sign up had come back in one of our Mac labs on campus. So annoying!
I had written a script to disable that, but then I realized that part of the script was version dependent and the workstations had all been updated to 10.9.5. So the stupid iCloud sign in was back. sigh
So after a quick Google search I realized that I could add in the most current version of the OS on the fly in my script with the following command:
I edited the script and set it to run at every ZENWorks refresh so that no matter when the OS version changes, the iCloud sign in will never come back!
Here is the script in total (watch the line wrapping!):
# Disables iCloud setup on first user login
defaults write /System/Library/User\ Template/Non_localized/Library/Preferences/com.apple.SetupAssistant DidSeeCloudSetup -bool TRUE
defaults write /System/Library/User\ Template/Non_localized/Library/Preferences/com.apple.SetupAssistant LastSeenCloudProductVersion -string $(sw_vers -productVersion)