Intune couldn't validate .plist (macOS)

Tomas Kracmar 1 Reputation point
2021-02-15T12:35:26.88+00:00

Hello,
I have a problem with deploying property list files for macOS with Intune. No matter what I try, I always end up with this error:

-2016341103 (We couldn't validate your file. Check for formatting errors and try again.)

I have started with this article: https://learn.microsoft.com/en-us/mem/intune/configuration/preference-file-settings-macos, but no matter what changes I make, I couldn't get it applied. I tried creating .plist by hand, with Xcode, adapting things I have found on the internet, no luck. Can somebody help me or provide me with sample file that is verified to work?

Thank you

Tomas

Microsoft Security | Intune | Configuration
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Colin Palmer 5 Reputation points
    2023-03-15T16:01:14.4733333+00:00

    I was able to get this to apply by uploading a file with the following contents, no surrounding whitespace, obviously with my enrolment token in place.

    The file was a .plist but I do not think that matters as Intune simply imports the text.

    <key>CloudManagementEnrollmentToken</key>
    <string>XXX-XXXX-XXXX-XXX</string>
    
    1 person found this answer helpful.
    0 comments No comments

  2. Lu Dai-MSFT 28,496 Reputation points
    2021-02-16T02:31:05.297+00:00

    @Tomas Kracmar Thanks for posting in our Q&A.

    For this issue, we appreciate your help to check if the macOS device's version is 10.7 and newer. Also we need to know is that not all apps can work with managed preferences.

    To check why it couldn't validate, we need to do more check such as log analysis. With Q&A limitation, we suggest to open a case to check on this. It is free. The following link describe how to open a case, we can refer to it:
    https://learn.microsoft.com/en-us/mem/intune/fundamentals/get-support

    Thanks for understanding and have a nice day.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. Pawel Pabijanczyk 1 Reputation point
    2021-10-12T19:27:15.76+00:00

    Hi, is there a soluttion for this issue?

    I have macOS 11.5.x
    I tried already view things. Convert the plist to xml1 format.
    I created .xml file

    I tried also to create a Configuration Profile with App Configurator 2

    I am trying to add some settings for Google Chrome

    This is my .plist file
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>CookiesAllowedForUrls</key>
    <array>
    <string>[.]....</string>
    <string>[
    .]login.microsoftonline.com</string>
    <string>[.]login.microsoft.com</string>
    </array>
    <key>DefaultBrowserSettingEnabled</key>
    <true/>
    <key>ImportBookmarks</key>
    <true/>
    <key>MetricsReportingEnabled</key>
    <false/>
    <key>PopupsAllowedForUrls</key>
    <array>
    <string>[
    ].....</string>
    <string>[*]......./string>
    </array>
    </dict>
    </plist>

    With Jamf Pro i do not have any issues to deploy it

    please help


  4. Rasmus Westergård 0 Reputation points
    2024-02-22T10:04:56.7766667+00:00

    In the Google documentation for this, there's an error in the preference domain name, com.google.chrome. This is case sensitive, and the correct preference domain name is com.google.Chrome

    Also, in case you added the XML header, just omit that and only add the keys. My policy kept failing until I removed that.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.