Home > Mac administration, Mac OS X, Scripting > Controlling the Diagnostics & Usage report settings on El Capitan

Controlling the Diagnostics & Usage report settings on El Capitan

One of the pop-up windows you get on first login to Yosemite and El Capitan is the Diagnostics & Usage pop-up window. This window requests permission for the following:

  1. Send diagnostics and usage data to Apple
  2. Share crash data with non-Apple developers

Screen Shot 2016 01 21 at 10 07 46 AM

 

I’ve been suppressing this window on OS X Yosemite by setting the values shown below in /Library/Application Support/CrashReporter/DiagnosticMessagesHistory.plist

<key>AutoSubmitVersion</key>
<integer>5</integer>
<key>AutoSubmit</key>
<false/>
<key>ThirdPartyDataSubmitVersion</key>
<integer>5</integer>
<key>ThirdPartyDataSubmit</key>
<false/>

On OS X El Capitan, it looks like the numeric value set for the AutoSubmitVersion and ThirdPartyDataSubmitVersion settings has changed from 4 to 5. The new settings should look like this:

<key>AutoSubmitVersion</key>
<integer>5</integer>
<key>AutoSubmit</key>
<false/>
<key>ThirdPartyDataSubmitVersion</key>
<integer>5</integer>
<key>ThirdPartyDataSubmit</key>
<false/>

For more details, see below the jump.

I’ve updated the script which I had previously written for Yosemite, so that it now sets the proper numeric value for the AutoSubmitVersion and ThirdPartyDataSubmitVersion settings on Yosemite and El Capitan in /Library/Application Support/CrashReporter/DiagnosticMessagesHistory.plist. The updated script is available below, and also from my Github repo:

https://github.com/rtrouton/rtrouton_scripts/tree/master/rtrouton_scripts/setting_diagnostic_result_reporting

 

This script sets whether you want to send diagnostic info from Yosemite and later back to Apple and/or third party app developers by applying the appropriate values in /Library/Application Support/CrashReporter/DiagnosticMessagesHistory.plist.

If you want to send diagnostic and usage data to Apple, set the following value in the script for the SUBMIT_DIAGNOSTIC_DATA_TO_APPLE setting:

SUBMIT_DIAGNOSTIC_DATA_TO_APPLE=TRUE

If you want to send crash data to non-Apple developers, set the following value in the script for the SUBMIT_DIAGNOSTIC_DATA_TO_APP_DEVELOPERS setting:

SUBMIT_DIAGNOSTIC_DATA_TO_APP_DEVELOPERS=TRUE

By default, the values in this script are set to send no diagnostic data, either to Apple or to non-Apple developers:

SUBMIT_DIAGNOSTIC_DATA_TO_APPLE=FALSE
SUBMIT_DIAGNOSTIC_DATA_TO_APP_DEVELOPERS=FALSE

To change this in your own script, comment out the FALSE lines and uncomment the TRUE lines as appropriate.

 

Hat tip to Shea Craig for letting me know that the numeric values for the AutoSubmitVersion and ThirdPartyDataSubmitVersion settings had changed between Yosemite and El Capitan.

  1. Phil Burk
    February 16, 2016 at 7:17 pm

    Rich, correct me if I’m wrong, but couldn’t you also use a Configuration Profile to submit these desired key values to the client?

  2. February 25, 2016 at 3:41 pm

    Rich, that’s awesome about the profiles but I can’t find it in the JSS. I’m at 9.81, perhaps its there in 9.82 (upgrading our test server to check!).
    But in the mean time, I’m still trying to suppress the Apple ID with a first boot script. I have the Diagnostics suppressed no problem. Do you know if any of the keys have changed for the AppleID window with 10.11? From what I can tell, the plist file looks exactly the same, but I’m still getting the wizard on first login even though the plist is there.

    Thanks!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: