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.
layout TaskbarLayoutModification.xml does not load with windows after restore
hello, help me solve a problem with windows 11 pro.
i did it exactly according to the microsoft documentation.
in this link:
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?