Creating several EA's to check if auto-update is being turned on for 3rd party software. Got some, but MS Office is giving me a bit of trouble.
Setting itself is user-specific - "defaults read /Users/username/Library/Preferences/com.microsoft.autoupdate2 HowToCheck" will return the expected value. However, I need to iterate through the users to make sure it is turned off on all. I was about to just try a "while" look to loop through, but... my problem is: if i iterate through the users, how do I keep values distinct for purposes of reporting in the EA output?
IE - if user "A" has auto updates off, and user "B" has them on... but user "C" has them off - will the EA simply report the last value of "Off"? I was intending to use this as part of a smart group to disable auto updates, but realize that going down the path of an EA may not be the most logical approach, so I'm open to suggestions on either how to script the EA or how to handle it better via another method. For apps that store the settings in the root library (Flash, etc.) it is a fairly simple task, but the user-specific settings are giving me a problem.
Being able to track which machines require correcting would be nice, but not essential. End-result is just being able to pass a quick audit verifying that auto updates are off (we push the updates after a test/validation cycle).