LayoutModification.xml file not working for customizing StartMenu Windows 10 5

So you are in the process of developing a Windows 10 image, nice!

You want de customize your StartMenu, nice!

You have built a reference machine, and exported the StartMenu file.
https://msdn.microsoft.com/en-us/library/windows/hardware/mt171092(v=vs.85).aspx

We know how to do that with PowerShell:

Export-StartLayout – Path C:\Export\MyStartMenu.xml

And in your task sequence you import the file again with PowerShell:

Import-StartLayout C:\Import\MyStartMenu.xml –MountPath $env:SystemDrive\

(or you can rename your MyStartMenu.xml file to LayoutModification.xml and do a xcopy to C:\Users\Default\AppData\Local\Microsoft\Windows\Shell\)

xcopy /e /s /y /h /i “%~dp0LayoutModification.xml” “C:\Users\Default\AppData\Local\Microsoft\Windows\Shell\LayoutModification.xml”

Ok you do a deployment, log on with a new user who has no profile on the computer, open up the startmenu and……Nothing, still the default startmenu!

Like this:

But I wanted this:

Well I found a nasty line in the generated XML file while exporting with PowerShell

Export:

And with this it is NOT working.

Just remove the line and things will start to work! Nice!

5 thoughts on “LayoutModification.xml file not working for customizing StartMenu Windows 10

  1. Reply putti Mar 21,2016 2:19 pm

    Hi, i have the same problem, LayoutModification.xml not working.

    on windows 10 64 pro

    if i force with gepedit.msc the layoutmodification.xml work but the user can’t change the start menu.

    A idea ?

    Thanks

  2. Reply putti Mar 21,2016 3:26 pm

    Hi, thank’s i know for gpo it’s to test layout, but import or copy failed to apply layoutmodification.
    A idea.
    Thank’s

  3. Reply Stephan Wibier Mar 23,2016 1:25 pm

    Keep in mind that it will only work for NEW users, i.e. users with no profile on the machine.
    /Stephan

  4. Reply Noah Wolff May 7,2016 6:17 am

    this same issue is happening for me. I found this blog post (thankfully! I was pulling my hair out because I’ve had it work before I recently updated it) and so I did a new import-startlayout on the same VM I was testing it on that had the regular start menu layout, and then I logged onto a local admin account, went to system -> advanced… -> user profiles -> and deleted the other account’s local profile and then logged out and onto it so it would rebuild a new profile, and the same result exists.

    i’m going to try this with reimaging it through the SCCM TS I have and see if it helps though on a fresh image.

Leave a Reply

%d bloggers like this: