xml file () that looks like this:Įxample custom. You can use TextEdit, CodeRunner, or the editor of your choice.
This is the file we will upload to Intune. xml file that contains only the keys that we are modifying. plist configuration to enable "Usage Data Settings" for the Company Portal for macOS app.įrom this file, we create an. plist file () we created on the desktop looks like this:Įxample custom. plist file from binary into XML so we can read it: plist file with only the key and value we need:ĭefaults write ~/Desktop/ "Enable_UsageDataSettings" -int 1 Now that we know which key value to change, we need to prepare the XML file which we will later upload to Intune and push to the devices.įirst, we create a custom. Step 2: Prepare the file for upload to Intune Screenshot of bash on a macOS device with an output of the "Enable_UsageDataSettings" key.Ī value of 1 means the setting is enabled, while a value of 0 means the setting is disabled. We read the value of the key with the command:ĭefaults read ~/Library/Preferences/ Enable_UsageDataSettings We select and deselect the parameter on the UI and compare the output of the defaults read command to identify that the key that manages the setting is Enable_UsageDataSettings. We read the file with the defaults read command:ĭefaults read ~/Library/Preferences/ We want to enforce the parameter “Allow Microsoft to collect usage data.”Įnabling data collection for the Intune Company Portal app for macOS. The majority of managed macOS devices have the Company Portal application installed. plist file setting to upload Company Portal usage data to Intune. Enforce the updated setting with Intune.Įxample 1: Enable data collection for Intune Company Portal.Find the key responsible for the setting you want to change and modify the value as necessary.The high-level process to enforce a setting is always the same and can be applied regardless of the type of application: Note: If an application uses another location, the only way to modify the settings is to use the Intune scripting engine (for details, see this blog post). With Intune, you can configure settings for both.
plist files in the folder ~/Library/Preferences (user preferences) or /Library/Preferences (system-wide settings). plist extension (for example, or ).Īpplications that use the standard macOS hierarchy will create. The default naming convention for a property list file includes the distributor’s reverse DNS name prepended to the app or process name, followed by the. They are usually formatted in XML, although they can use JSON too (in which case you should convert them to XML with the command ( plutil -convert xml1 pathToJSON). However, if the settings you want to modify aren't available, use a property list file instead.Ĭonfiguration files on macOS have the extension “.plist” (property list) and store configuration settings and properties. Settings catalog is continually being extended.Microsoft Defender ATP for Endpoint: Set preferences for Microsoft Defender for Endpoint on macOS.Microsoft Edge version 77 or later: Microsoft Edge - Policies.See the following for a list of settings you can configure in the settings catalog: If you are configuring application settings that are available in the settings catalog, use this feature instead of a property list file to manage those settings.Property list files target the entire device. Only use property list files that target device channel settings, not user channel settings.Only some apps work with managed preferences and not all settings can be managed.To validate setting changes, be sure to test them before assigning profiles to devices.Here are some things to consider when working with property list files:
#Mac edit plist file how to
This article gives a few practical examples that explain how to use property list files to modify settings for Intune Company Portal, Outlook for Mac, and CodeRunner. You can use a property list file (.plist) in Intune to configure settings for a macOS application. Many macOS applications require more than just a standard install, with some needing significant configuration to make them work in your environment. One question our customers often ask is how to configure an application on a macOS device with Microsoft Intune. By Marc Nahum – Senior Program Manager | Microsoft Endpoint Manager – Intune