Hi, this works for me:
1.Make a package with your startlayout xml file
2.Make a PS script with this commandline and put it in your package: 
Import-StartLayout -LayoutPath .\StartLayout.xml -MountPath $env:SystemDrive\
3.Make a TS step "Run PowerShell Script" and run your script: eg 
StartLayout.ps1, remember to bypass execution policy

Mvh
Erik

From: [email protected] [mailto:[email protected]] On 
Behalf Of Séguin, Mario (BAC/LAC)
Sent: 11. mars 2016 21:04
To: [email protected]
Subject: [MDT-OSD] Import-Start Layout Windows 8.1

Hi everyone,

The import-startlayout command dosen't seem to work if I put it in a task 
sequence. If I run the command manually, it works but not from mdt.

Here is the command I use

powershell -noninteractive -command import-startlayout -layoutpath 
c:\srvany\Windows8StartMenu.bin -mountpath %systemdrive%\

I also tried


$mount= "C:\"

Import-StartLayout -LayoutPath "c:\srvany\Windows8StartMenu.bin" -MountPath 
$mount

And



Import-StartLayout -LayoutPath "c:\srvany\Windows8StartMenu.bin" -MountPath 
$env:systemdrive\




thanks


Reply via email to