none
Custom Tasks sequence gets skipped over when installing image on Desktop computer but works on Hyper-V virtual machine RRS feed

  • General discussion

  • MDT 2013 Windows 10- Custom Tasks sequence gets skipped over when Installing image on a Desktop computer with UBS boot drive, but works fine when I install on a Virtual machine. I'm scratching my head on this one.

    I'm using Custom Tasks Sequence to customize my taskbar. I use a .XML file to copy to Windows\Temp then import the file using a PowerShell script "%SCRIPTROOT%\DTW\StartMenu\ApplyCustomMenu.ps1". This works in a virtual environment but not when I install the image on a physical desktop computer. Help!
    Tuesday, October 17, 2017 2:43 PM

All replies

  • Starting with build 1607 (Anniversary update) Taskbar items can also be included in the layout xml file. 

    https://technet.microsoft.com/en-us/itpro/windows/manage/configure-windows-10-taskbar
    https://technet.microsoft.com/en-us/itpro/windows/manage/customize-and-export-start-layout

    When exporting the layout to an xml file using PowerShell, I noticed it did not include the xml namespaces (xmlns) published in Microsoft's example code and because of that the layout file would not work. Be sure to include the missing code. For me once I added the missing code it worked just fine.

    During deployment I simply have the LayoutModification.xml file copied into "\Users\Default\AppData\Local\Microsoft\Windows\Shell\". Feel free to use whichever method of copying you want. While the administrator profile won't get the updated layout (because the profile was already created) any new user that logs into the machine will get the layout. One advantage to this method is you can revise and replace the xml file on your deployment share without having to build a new image. 

    It's been working great for me using that method.

    If you're a little OCD you can use this method to apply the same layout during the creation of your reference image, then when you deploy the captured image the admin account will also have the new layout.


    If this post is helpful please vote it as Helpful or click Mark for answer.

    Tuesday, October 17, 2017 7:57 PM
  • When you say "be sure to include the missing code" Do you mean change the .xml file to xmlns? 
    Wednesday, October 18, 2017 12:32 PM
  • No I mean there is literally xmlns code missing from the generated xml file.

    <?xml version="1.0" encoding="utf-8"?>
    <LayoutModificationTemplate 
        xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"
        xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
        xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout"
        xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
        Version="1">

    When you export your start menu layout, compare your xml file to the example shown on Microsoft's website and you'll see what I mean. I don't know if it's changed in the last few months, but when I made a new layout file for 1703 it wasn't working until I added the missing xmlns.

    Your taskbar code will look something like this:

      <CustomTaskbarLayoutCollection PinListPlacement="Replace">
          <defaultlayout:TaskbarLayout>
            <taskbar:TaskbarPinList>
              <taskbar:DesktopApp DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\System Tools\File Explorer.lnk" />
    		  <taskbar:UWA AppUserModelID="Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge" />
    		  <taskbar:DesktopApp DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Outlook 2016.lnk" />
    		  <taskbar:DesktopApp DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Word 2016.lnk" />
              <taskbar:DesktopApp DesktopApplicationLinkPath="%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Google Chrome.lnk" />
            </taskbar:TaskbarPinList>
          </defaultlayout:TaskbarLayout>
        </CustomTaskbarLayoutCollection>


    If this post is helpful please vote it as Helpful or click Mark for answer.

    Wednesday, October 18, 2017 1:21 PM
  • My generated xml file had the xmlns coding in there so I don't think that's the problem for me. What if I change the coding to xml rather then xmlns in the generated xml file?
    Wednesday, October 18, 2017 1:54 PM
  • You'll break it and it will not apply the layout if you do that. Look at the posts from Microsoft about it for comparison. 

    https://docs.microsoft.com/en-us/windows/configuration/configure-windows-10-taskbar

    The above page is the one you want to use for comparison to your XML file. 


    If this post is helpful please vote it as Helpful or click Mark for answer.

    Wednesday, October 18, 2017 2:32 PM
  • Here's what mine looks like It looks the same as the one from the link. It works with no errors on a virtual machine but not a physical desktop. I may have to use option 2 that you mentioned.

    <?xml version="1.0" encoding="utf-8"?>
    <LayoutModificationTemplate
        xmlns="http://schemas.microsoft.com/Start/2014/LayoutModification"
        xmlns:defaultlayout="http://schemas.microsoft.com/Start/2014/FullDefaultLayout"
        xmlns:start="http://schemas.microsoft.com/Start/2014/StartLayout"
        xmlns:taskbar="http://schemas.microsoft.com/Start/2014/TaskbarLayout"
        Version="1">
      <CustomTaskbarLayoutCollection PinListPlacement="Replace">
        <defaultlayout:TaskbarLayout>
          <taskbar:TaskbarPinList>
            <taskbar:DesktopApp DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\Accessories\Internet Explorer.lnk"/>
            <taskbar:DesktopApp DesktopApplicationLinkPath="%APPDATA%\Microsoft\Windows\Start Menu\Programs\System Tools\File Explorer.lnk" />
            <taskbar:UWA AppUserModelID="Microsoft.Office.Word_8wekyb3d8bbwe!microsoft.word" />
          </taskbar:TaskbarPinList>
        </defaultlayout:TaskbarLayout>
      </CustomTaskbarLayoutCollection>
    </LayoutModificationTemplate>

    https://docs.microsoft.com/en-us/windows/configuration/configure-windows-10-taskbar

    Wednesday, October 18, 2017 3:18 PM