I am in the process of converting all of our "defaults write" script lines to configuration profiles using the Custom Settings payload. These are being deployed in a lab environment, so we get pretty granular with the customizations. Configuration profiles also prevent changes with most settings, which is why we are making this shift.
I'm stuck on the settings that fall under .GlobalPreferences.plist. I cannot figure out how to specify that in the domain field of the Custom Settings payload. For all of the other preference files, I can type "com.apple.whatever". Does anyone know which domain to specify to apply the settings to .GlobalPreferences.plist or the NSGlobalDomain? I've tried typing ".GlobalPreferences" into the Preference Domain field.
#!/bin/sh defaults write -g AppleInterfaceStyle Dark