Posted on 02-19-2023 09:29 PM
Hi all,
Is anyone know if we can retrieve the "enforcedSoftwareUpdateMinorOSDeferredInstallDelay" from the com.apple.applicationaccess?
Solved! Go to Solution.
Posted on 02-20-2023 05:04 PM
@A_Collins This is not true. The com.apple.applicationaccess.plist file that gets created in /Library/Managed\ Preferences from a Configuration Profile is a completely flat plist that's super easy to read back. Take a look at it on a managed macOS device that has at least one setting from a profile that uses that domain, and you'll see what I mean.
I know this because I have several Extension Attributes that read from that file. The structure of it is flat and not complicated to read with defaults at all.
02-20-2023 04:17 AM - edited 02-20-2023 08:44 PM
I'm not sure if it's possible to retrieve the "enforcedSoftwareUpdateMinorOSDeferredInstallDelay" setting from the "com.apple.applicationaccess" domain. It's best to consult the documentation of the specific operating system or programming language being used, or seek assistance from a technical expert.
Thanks,
Posted on 02-20-2023 09:43 AM
Can you explain a little more what you're looking for? Are you trying to grab the value contained in the deployed configuration profile?
If so, all config profiles create or add to some plist file in /Library/Managed\ Preferences on the Mac. So I would look in there for the com.apple.applicationaccess.plist for the info. These are standard plist files that can usually be read easily with /usr/bin/defaults, though some of them may be too complicated for that and will need to be read with something else, like PlistBudddy.
Posted on 02-20-2023 12:01 PM
Thanks for the responses. The reason I want to retrieve that data is to activate nudge launchagent referencing the value there. For instance, I want to delay major OS release with 60 days and I dont want nudge launchagent to ask user to update during period. @mm2270 unfortunately com.applicationaccess is not like any other regular plist files that you can write or get simply by defaults as far as I know.
Posted on 02-20-2023 05:04 PM
@A_Collins This is not true. The com.apple.applicationaccess.plist file that gets created in /Library/Managed\ Preferences from a Configuration Profile is a completely flat plist that's super easy to read back. Take a look at it on a managed macOS device that has at least one setting from a profile that uses that domain, and you'll see what I mean.
I know this because I have several Extension Attributes that read from that file. The structure of it is flat and not complicated to read with defaults at all.
Posted on 02-20-2023 05:23 PM
Thanks, yea I dont know how I wouldn't find it.