layout TaskbarLayoutModification.xml does not load with windows after restore

Gabriel Ramos Rochadel 0 Reputation points
2023-11-10T17:58:59.61+00:00

hello, help me solve a problem with windows 11 pro.

i did it exactly according to the microsoft documentation.

in this link:

https://learn.microsoft.com/pt-br/windows-hardware/manufacture/desktop/add-a-script-to-push-button-reset-features?view=windows-11

I created the folder in c:\recovery\OEM

and inside the OEM folder I put all the necessary files which are:

TaskbarLayoutModification.xml

LayoutModification.json

LayoutModification.xml

Unattend.xml

CommonCustomizations.cmd

ResetConfig.xml

I used the following parameters to call the CommonCustomizations.cmd file

file inside ResetConfig.xml

Phase="BasicReset_AfterImageApply and

Phase="FactoryReset_AfterImageApply

in short: all files worked except the

TaskbarLayoutModification.xml

taskbarlayoutModification.xml doesn't work.

first when restoring windows i noticed that the folder c:\windows\OEM

folder was not created and therefore TaskbarLayoutModification.xml

was not placed inside so inside

CommonCustomizations.cmd before copying the Taskbar to OEM

I added the command md %TARGETOS%\OEM

and this time in the factory restore the OEM folder was created and the taskbar sent to windows\OEM\TaskbarLayoutModification.xml

but it doesn't work, only Unattend.xml, LayoutModification.json work, please help me, what do I do to make my TaskbarLayoutModification.xml work?

Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,948 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Gabriel Ramos Rochadel 0 Reputation points
    2023-11-11T13:16:49.9066667+00:00

    I solved my problem by myself, I created a policy in gpedit, start layout pointed to OEM, where the start layout is and I captured the configuration with scanstate and it worked, now in the restore the modified taskbar appears.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.