Import-StartLayout doesn't change anything

9

2

I'm trying to create a layout template on Windows 10 using the Export/Import-StartLayout commands.

Here's what I've done.

  1. Open an admin PowerShell window.
  2. Run Export-StartLayout -Path layout.xml.
  3. Unpin some tiles from my start menu
  4. Run Import-StartLayout -LayoutPath layout.xml -MountPath C:\

When I look at my start menu now, the tiles I remove haven't come back. The Import command gives me no errors.

Am I using the commands wrong? Is there something else I need to do before/afterwards?

Here's the contents of layout.xml

<LayoutModificationTemplate Version="1" xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification">
  <DefaultLayoutOverride>
    <StartLayoutCollection>
      <defaultlayout:StartLayout GroupCellWidth="6" xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout">
        <start:Group Name="" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout">
          <start:DesktopApplicationTile Size="2x2" Column="4" Row="0" DesktopApplicationID="C:\Users\Jozsef\AppData\Roaming\Spotify\Spotify.exe" />
          <start:DesktopApplicationTile Size="2x2" Column="0" Row="2" DesktopApplicationID="{6D809377-6AF0-444B-8957-A3773F02200E}\NetBeans 8.0.2\bin\netbeans64.exe" />
          <start:DesktopApplicationTile Size="2x2" Column="2" Row="0" DesktopApplicationID="{6D809377-6AF0-444B-8957-A3773F02200E}\HeidiSQL\heidisql.exe" />
          <start:DesktopApplicationTile Size="2x2" Column="0" Row="0" DesktopApplicationID="{7C5A40EF-A0FB-4BFC-874A-C0F2E0B9FA8E}\Notepad++\notepad++.exe" />
          <start:Tile Size="2x2" Column="2" Row="2" AppUserModelID="Microsoft.WindowsCalculator_8wekyb3d8bbwe!App" />
        </start:Group>
        <start:Group Name="" xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout">
          <start:Tile Size="2x2" Column="0" Row="0" AppUserModelID="microsoft.windowscommunicationsapps_8wekyb3d8bbwe!microsoft.windowslive.mail" />
        </start:Group>
      </defaultlayout:StartLayout>
    </StartLayoutCollection>
  </DefaultLayoutOverride>
</LayoutModificationTemplate>

TMH

Posted 2016-08-24T13:22:09.440

Reputation: 495

If I understand correctly, importing the layout will only modify the default user. As such, changes wouldn’t affect existing user profiles. – Daniel B – 2016-08-24T13:36:23.213

Answers

12

The Import-StartLayout command only works in the default user profile. It is used for creating and deploying windows 10 system images. It does not work in the current users profile or any other already created profiles.

Source and prior experience.

Joe Taylor

Posted 2016-08-24T13:22:09.440

Reputation: 11 533

1

After baging my head (hard) against the same issue, I can confirm that Export-StartLayout + Import-StartLayout works with the default profile only. I'm looking for an alternative: https://superuser.com/questions/1194556/backup-and-restore-windows-10-start-menu-tiles-replacing-vedatamodel-edb-no-eff

– Dr. Gianluigi Zane Zanettini – 2017-04-01T13:27:18.743

After using Import-StartLayout to set a default start menu layout in the default profile, when a new user creates a profile, and that default start menu layout is applied, can the user make further changes to the start menu layout? or is it locked and set in stone for them? – Baodad – 2018-07-05T15:09:09.140

1@Baodad - The user can make changes as and when they choose – Joe Taylor – 2018-07-09T13:22:04.610

2

Simplest method is to use Backup Start Menu Layout


Another way:

Export:

  1. Open an admin PowerShell window
  2. Run Export-StartLayout -Path layout.xml

Import for current user:

  1. Import layout.xml via Group Policy
  2. Kill explorer.exe
  3. Start explorer.exe
  4. Disable Group Policy
  5. Kill explorer.exe
  6. Start explorer.exe
  7. You are done :-) You now have layout imported from xml file

Without step 4 Menu Start tiles will be locked

qewg

Posted 2016-08-24T13:22:09.440

Reputation: 23