Automatically suppressing the iCloud and Diagnostics pop-up windows with Casper
When I updated to 10.10.1 yesterday, as part of the restart process I noticed that I was seeing the Diagnostics pop-up window appear on login.
I had previously suppressed this window as part of setting up this machine, but it looks like the LastSeenBuddyBuildVersion value in /Users/username/Library/Preferences/com.apple.SetupAssistant.plist had the build number for 10.10.0 stored and it needed to be updated with the build number of 10.10.1 in order to suppress the Diagnostics pop-up window again.
Fortunately, this can be addressed by setting up an automated run of my iCloud / Diagnostics suppression script with Casper. This should automatically update the LastSeenBuddyBuildVersion value in /Users/username/Library/Preferences/com.apple.SetupAssistant.plist with the build number for the current version of 10.10.x. For more details, see below the jump.
To help automate this process, I first added the iCloud / Diagnostics suppression script to my Casper server.
After adding the script, I set up a Casper policy that automatically runs this script at startup.
To help ensure that this script also runs when the Mac cannot contact my Casper server, I’ve set Execution Frequency to Ongoing, as that allows me to select the Make Available Offline option.
The policy is scoped to a smart group that contains only 10.10.x Macs.