macOS 10.12.2: Unable to verify MDM profile for setting automatic macOS updates has applied properly by checking in System Preferences -> App Store

Originator:rtrouton
Number:rdar://30042571 Date Originated:16-Jan-2017 02:09 PM
Status:Open Resolved:
Product:macOS Product Version:macOS 10.12.2 (16C68)
Classification:Serious Bug Reproducible:Always
 
Unable to verify MDM profile for setting automatic macOS updates has applied properly by checking in System Preferences: App Store

Summary:

I am unable to verify that an MDM profile for setting the `AutoUpdateRestartRequired` value in `com.apple.commerce` has been set correctly by looking in System Preferences: App Store.

Steps to Reproduce:

1. Install appropriate profile - sample profile available at https://gist.github.com/rtrouton/43438ddb9e9d471e5168030ba12bc3e4
2. Open System Preferences
3. Select the App Store preference pane
4. Examine the checkbox for "Install macOS Updates"

Expected Results:

The checkbox for "Install macOS Updates" would be checked and possibly grayed-out.

Actual Results:

The checkbox for "Install macOS Updates" was not checked (see attached screenshot.)

Regression:

After installing the profile, I ran the following commands to see if the `AutoUpdateRestartRequired` value was set to "true" after the profile was installed:

python -c "from Foundation import CFPreferencesAppValueIsForced; print CFPreferencesAppValueIsForced('AutoUpdateRestartRequired', 'com.apple.commerce')"

python -c "from Foundation import CFPreferencesCopyAppValue; print CFPreferencesCopyAppValue('AutoUpdateRestartRequired', 'com.apple.commerce')"

When profile was installed:

Both commands returned a value of "True" (no quotes)

When profile was not installed:

Both commands returned a value of "None" (no quotes)

Comments

Screenshot

Screenshot can be seen here:

http://i.imgur.com/37MN1V9.png


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!