Skip to content

Import start layout XML into Windows 10 install.wim Image using PowerShell

In the previous post I exported the Start Layout to an XML file.
Now I will import this into a mounted Windows 10 Image which can then be deployed using various methods.

Copy Windows 10 Creator’s Update Enterprise ISO to local disk in C:\imagestore\.

Mount the ISO using PS:

Mount-DiskImage -ImagePath "C:\imagestore\15063.0.170317-1834.RS2_RELEASE_CLIENTENTERPRISEEVAL_OEMRET_X64FRE_EN-US.ISO"

Check if attached is true:

Get-DiskImage -ImagePath "C:\imagestore\15063.0.170317-1834.RS2_RELEASE_CLIENTENTERPRISEEVAL_OEMRET_X64FRE_EN-US.ISO"

Copy install.wim from sources folder of mounted ISO to local folder:

Copy-Item "F:\sources\install.wim" -Destination "C:\imagestore\" -Verbose

Create local folder c:\offline:

New-Item -Path "C:\" -Name "offline" -ItemType "directory"

Mount the Windows image to path c:\offline:

Mount-WindowsImage -ImagePath "C:\imagestore\install.wim" -Index 1 -Path "C:\offline"

Importing Start Layout XML to mounted image:

Import-StartLayout -LayoutPath "C:\imagestore\StartLayout.xml" -MountPath "C:\offline" -verbose

Save Windows Image and Dismount:

Dismount-WindowsImage -path "c:\offline" -save -verbose

The path for default layout file for new users:


The GP Location in local policy:

User Conf\Admin T\Start Menu\Start Layout

In Win 10 you can also use WCD to make a provisioning package and run a new start layout on a live Windows System. I have gone through this in the previous post.


0 0 votes
Article Rating
Share this Post
  • 1
Notify of
Newest Most Voted
Inline Feedbacks
View all comments
2 years ago

i get an error at “Mount the Windows image to path c:\offline:”.
Found the solution at:
msun-km postet this:
For a workaround, I used Junction64.exe to create the expected ‘E:\MountedImageUsers’ junction targeted to ‘E:\MountedImage\Users’

1 year ago
Reply to  dernerl

What is Junction64.exe what command did you have to run to get the StartLayout.xml imported.

6 months ago
Reply to  clivebuckwheat

Junction (and junction64.exe) is a freeware utility from Sysinternals (now belonging to Microsoft).
Download the from Sysinternals and then extract junction64.exe to C:\temp
If you mounted the install.wim to the mountpoint C:\temp\WIM\mnt then this command would be fixing your problem:
c:\temp\junction64.exe C:\temp\WIM\mntUsers “C:\temp\WIM\mnt\Users”

Would love your thoughts, please comment.x