Setup Layout using PowerShell in Windows 11 23 H2


ijalabs

Active member
Local time
7:02 AM
Posts
24
OS
Windows 11
Hi Experts,

While capturing the image i am setting up the startlayout and start menu customizations using XML file without issues so far. we are using the native(DISM commands and PowerShell) option for capturing and deploying the image as we have limitations.

But now while working on Windows 11 23H2 i am seeing an issue as " .xml file is not a valid layout file" - the same file was working in without issues in Windows 11 22H2.

herewith below find the command i am using to setup the layout using PowerShell.

Import-StartLayout -LayoutPath C:\Temp\StartAndTaskbar.xml -MountPath $env:SystemDrive\

also while checking in some URL it says we no longer use import-startlayout & we have to use only MDM.

Kindly help on fixing this issue.
 
Windows Build/Version
Windows 11 23H2

My Computer My Computer

At a glance

Windows 11
OS
Windows 11
Computer type
PC/Desktop
Manufacturer/Model
HP Z2 SFF G9
Hi Experts,

While capturing the image i am setting up the startlayout and start menu customizations using XML file without issues so far. we are using the native(DISM commands and PowerShell) option for capturing and deploying the image as we have limitations.

But now while working on Windows 11 23H2 i am seeing an issue as " .xml file is not a valid layout file" - the same file was working in without issues in Windows 11 22H2.

herewith below find the command i am using to setup the layout using PowerShell.

Import-StartLayout -LayoutPath C:\Temp\StartAndTaskbar.xml -MountPath $env:SystemDrive\

also while checking in some URL it says we no longer use import-startlayout & we have to use only MDM.

Kindly help on fixing this issue.
PS C:\> Import-StartLayout -LayoutPath "Layout.xml" -MountPath " C:\" -WhatIf

try this and see, maybe its due to your paths not being enclosed by ''
here is the github reference

MS-Docs
 

My Computer My Computer

At a glance

WIndows 11 Pro 24H2 (26120.1330)AMD Ryzen 5 6600H16 GiB DDR5 4800HzAMD RADEON(TM) GRAPHICS
OS
WIndows 11 Pro 24H2 (26120.1330)
Computer type
PC/Desktop
CPU
AMD Ryzen 5 6600H
Memory
16 GiB DDR5 4800Hz
Graphics Card(s)
AMD RADEON(TM) GRAPHICS
Sound Card
2 ears
Monitor(s) Displays
FHD 100HZ 22'
Screen Resolution
1920x1080
Hard Drives
1000 GiB USB type c cluster
Cooling
Canadian Winter
Keyboard
VT100
Internet Speed
2.5GhZ ethernet realtek
Browser
w3m
Antivirus
Mark Russinovich

Latest Support Threads

Back
Top Bottom