Skip to content

Export-StartLayout creates a JSON file, not XML. Import-StartLayout can't consume it. #3267

@bitbound

Description

@bitbound

This is on Windows 11.

The Export-StartLayout cmdlet creates a JSON file, but the documentation says it creates XML.

If you try to import the JSON file that results from this cmdlet, you'll get the error:

Import-StartLayout : The file {path-to-file} is not a valid layout file

The JSON file looks like this, which is clearly intended for Windows 11:

{
    "pinnedList": [
        {
            "desktopAppLink": "%ALLUSERSPROFILE%\\Microsoft\\Windows\\Start Menu\\Programs\\Microsoft Edge.lnk"
        }
        // etc.
    ]
}

If you use the UseDesktopApplicationID switch with the export command, then it creates XML. However, the content within it is clearly meant for Windows 10, since it contains tiles and sizes. And it doesn't reflect what's pinned in the Windows 11 start menu.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions