-
Notifications
You must be signed in to change notification settings - Fork 619
Closed
Description
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.
- ID: 3b2acb98-04c8-242f-8ee8-3c5150160eb5
- Version Independent ID: c1208227-6428-bee1-e2f3-0cda1f35dc1c
- Content: Export-StartLayout (StartLayout)
- Content Source: docset/winserver2022-ps/startlayout/Export-StartLayout.md
- Product: w10
- Technology: windows
- GitHub Login: @JasonGerend
- Microsoft Alias: jgerend
Metadata
Metadata
Assignees
Labels
No labels