Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Importing StartLayout in unattend answer file

Avatar of ajwellman
ajwellman asked on
XMLPowershellWindows 10
3 Comments1 Solution423 ViewsLast Modified:
I am trying to import a Win10 Startmenu .xml in a sysprep unattend.xml file.  There are no errors reported when the unattend xml is validated with MS WSI.  Sysprep runs without an error, but the startmenu layout is not imported.  Not sure if this is where I should place these powershell commands to import the layout.  This is a segment of the unattend.xml file I am using.

    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <Description>Set Powershell Execution Policy to Unrestricted</Description>
                    <CommandLine>powershell.exe Set-ExecutionPolicy Unrestricted -force</CommandLine>
                    <Order>3</Order>
                    <RequiresUserInput>false</RequiresUserInput>
            </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <Description>Load Start Menu</Description>
                    <Order>4</Order>
                    <CommandLine>powershell.exe Import-StartLayout –LayoutPath C:\W10Setup\StartLayout\StartLayout.xml –MountPath $env:SystemDrive\</CommandLine>
                    <RequiresUserInput>false</RequiresUserInput>
            </SynchronousCommand>
            </FirstLogonCommands>
        </component>
    </settings>

Any help or suggestions is appreciated.
Thanks
ArtW
ASKER CERTIFIED SOLUTION
Avatar of McKnife
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answers