Forum Discussion

dedicated-worker's avatar
dedicated-worker
Copper Contributor
Oct 09, 2024

Is Export-StartLayout no longer implemented?

Since the new release of Windows 11 LTSC 24H2 I've been trying to make a new image. In the process I export the custom start layout. After using the command:

Export-StartLayout -UseDesktopApplicationID -Path layout.json

 I got the following error message:

Export-StartLayout : The method or operation is not implemented.
At line:1 char:1
+ Export-StartLayout -UseDesktopApplicationID -Path layout.json
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Export-StartLayout], NotImplementedException
    + FullyQualifiedErrorId : System.NotImplementedException,Microsoft.Windows.StartLayout.Commands.ExportStartLayoutCommand

I checked the resource for Customizing the Start Menu, and they are still mentioning the Export-StartLayout cmdlet. The main difference is instead of XML it's JSON.

 

Out of curiosity I tried running the command without paramters looking for another error code and got the following:

Export-StartLayout : Parameter set cannot be resolved using the specified named parameters.
At line:1 char:1
+ Export-StartLayout
+ ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Export-StartLayout], ParameterBindingException
    + FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.Windows.StartLayout.Commands.ExportStartLayoutCommand

 

Happily waiting for any replies,

dedicated-worker.

  • dedicated-worker 

     

    I was able to make one by creating a folder called Layouts on the C Drive.

    Then running this command in an elevated PowerShell window.

    Export-StartLayout -Path "C:\Layouts\LayoutModification.json"

     

    I hope this helps!

  • bradperdue's avatar
    bradperdue
    Copper Contributor

    dedicated-worker 

     

    I was able to make one by creating a folder called Layouts on the C Drive.

    Then running this command in an elevated PowerShell window.

    Export-StartLayout -Path "C:\Layouts\LayoutModification.json"

     

    I hope this helps!

    • dedicated-worker's avatar
      dedicated-worker
      Copper Contributor
      Thank you for your reply! I was able to use the command you suggested. It doesn't produce the kind of file I want and expected. It doesn't recognize folders to my knowledge. I haven't tried the imaging part yet, so I don't know yet if I can use it.

      But thank you again,
      dedicated-worker.
      • bradperdue's avatar
        bradperdue
        Copper Contributor

        dedicated-worker 

         

        I tried the file in my script for my image and it did not apply my layout, but worked fine in 23H2 and older. Still trying to figure out what is going on. If I find a fix I will  let you know.

         

  • Aaronfg's avatar
    Aaronfg
    Copper Contributor
    If unsure, you can look into community forums, Microsoft's TechNet, or other user forums for insights regarding specific error messages or issues related to PowerShell commands and windows environments.
  • Wanmma's avatar
    Wanmma
    Copper Contributor
    As of my last update, Windows 11 and its various versions (including LTSC) have gone through numerous updates, and features can change or be deprecated over time. It seems you've run into an issue with the Export-StartLayout cmdlet when working with Windows 11 LTSC 24H2.

Resources