LayoutModification.xml under Windows 11 24H2

monito30

New Member
Messages
9
Reaction score
0
Good evening community,

Someone has been able to add taskbar icons in Windows 11 24H2 from a response file.

It doesn't work for me and I throw out all kinds of possible solutions. I have done the following:

Add this command in the Specialize

1.- cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer /v LayoutXMLPath /d "C:\Users\Default\AppData\Local\Microsoft\Windows\Shell\DefaultLayouts.xml" /f y cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer /v LayoutXMLPath /d "C:\Users\Default\AppData\Local\Microsoft\Windows\Shell\LayoutModification.xml" /f

And it works but it's to replace when I have this kind of setup in the XML file.

Code:
<?xml version="1.0" encoding="utf-8"?>
<LayoutModificationTemplate
    xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"
    xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
    xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout"
    xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
    Version="1">
    <CustomTaskbarLayoutCollection PinListPlacement="Replace">
        <defaultlayout:TaskbarLayout>
            <taskbar:TaskbarPinList>
                <taskbar:UWA AppUserModelID="Microsoft.WindowsTerminal_8wekyb3d8bbwe!App"/>  <!-- Windows terminal -->
                <taskbar:DesktopApp DesktopApplicationID="Microsoft.Windows.Explorer"/> <!-- Explorer Windows -->
            </taskbar:TaskbarPinList>
        </defaultlayout:TaskbarLayout>
    </CustomTaskbarLayoutCollection>
</LayoutModificationTemplate>

When installing the ISO, I save with the name LayoutModification.xml, and at the time of startup the terminal icon appears, but obviously it replaces it with the Microsoft Edge.

Following the same sequence, remove this PinListPlacement="Replace". So that I would add, the terminal and keep the others, but still it didn't work and left me by default explorer and the edge. I also changed the name to DefaultLayouts.xml but still nothing.

Has anyone else worked for you?

I would appreciate your help please
 
garlin,

Lo he hecho, pero por alguna extraña razón no toma el archivo.

También cambié el nombre por defecto y sigue sin funcionar, al menos para agregar.
Could it be because Windows 11 24h2 is a bit incompatible or is there something else missing?
 
User comments on multiple sites confirm the XML method has been broken since the May 2023 patch updates. And doesn't work on 24H2.
import-startlayout for taskbar stopped working with May 2024 updates

I can't make it work on 23H2. Instead you can use the Start2.bin method, which copies the Start Menu & Taskbar layout from an existing user account and dumps it into the Default User's AppData folder. Of course you will need a working W11 system to copy from.

Guide: Start Menu and Taskbar
 
I ran into this as well, and FINALLY figured it out yesterday. It turns out that xml comments break the file. Remove the comments, and it will work as expected.
 
Dear jcoehoorn,

Good morning,I wanted to consult you regarding your preceding comment.

Did the configurations I made work for you?
What was the valid option you implemented for it to work?
Which line comments did you remove?
I look forward to your comments.
 
XML comment tags are not allowed.
Code:
            <taskbar:TaskbarPinList>
                <taskbar:UWA AppUserModelID="Microsoft.WindowsTerminal_8wekyb3d8bbwe!App"/>  <!-- Windows terminal -->
                <taskbar:DesktopApp DesktopApplicationID="Microsoft.Windows.Explorer"/> <!-- Explorer Windows -->
            </taskbar:TaskbarPinList>
Code:
            <taskbar:TaskbarPinList>
                <taskbar:UWA AppUserModelID="Microsoft.WindowsTerminal_8wekyb3d8bbwe!App"/>
                <taskbar:DesktopApp DesktopApplicationID="Microsoft.Windows.Explorer"/>
            </taskbar:TaskbarPinList>
 
Back
Top