Skip to content

fix: GPO 'Configure favorites' only shows '[' instead of full JSON value #14

@dernerl

Description

@dernerl

Bug Description

When importing the generated JSON into a GPO policy setting ("Configure favorites"), the GPO editor only displays [ as the policy value instead of the full JSON array. The generated JSON file itself appears to be correct (as visible in a text editor), but the value is not properly stored/imported into the GPO.

Expected Behavior

The GPO policy setting "Configure favorites" should contain the full JSON array with all favorites entries (toplevel items and URLs).

Steps to Reproduce

  1. Generate favorites JSON using ManagedFavsGenerator
  2. Open Group Policy Management Editor
  3. Navigate to the "Configure favorites" policy setting
  4. Import / paste the generated JSON
  5. Confirm and reopen the policy setting

Result: The policy value shows only [ instead of the complete JSON.

Environment

  • Windows (GPO via Group Policy Management Editor)
  • Generated JSON example:
[
  {
    "toplevel_name": "managedFavs"
  },
  {
    "name": "Citrix",
    "url": "https://citrix.com"
  },
  {
    "name": "Wiki",
    "url": "https://wikipedia.org"
  },
  {
    "name": "Copilot",
    "url": "https://m365.cloud.microsoft/chat"
  }
]

Logs or Error Messages

No explicit error message — the GPO editor silently truncates the value to [.

Additional Context

Screenshot shows the GPO editor displaying only [ as the value for "Configure favorites", while the Notepad in the background shows the complete and valid JSON content.

Possible causes:

  • JSON value exceeds a character limit for GPO string policies
  • Special characters or encoding issue causes early termination
  • The JSON needs to be on a single line (minified) for GPO compatibility

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions