MDT 2013 Windows 10 and the MSP Part 5
March 1, 2017 5 Comments
In Parts 1 – 4 we have covered topics like Installing and customising MDT, adding Operating Systems and Applications and creating Task Sequences.
Catch up here!
http://wp.me/p1i7Su-1Di – Part 1
http://wp.me/p1i7Su-1Dk – Part 2
http://wp.me/p1i7Su-1FR – Part 3
http://wp.me/p1i7Su-1EY – Part 4
In Part 5 we will look at more customisation, but of the Deployed Operating System.
I expect most people reading this will have deployed at least one Windows 10 device. You will also no doubt be familiar with some preinstalled Apps, such as Candy Crush or the plethora of other crap items that are loaded into the default start menu.
I don’t have a problem with the user customising their own start menu, but I want them to start with a relatively clean slate.
Microsoft, of course, have you covered on this one.
You need to customise your start menu as you see fit. Then you can use a PowerShell command to export that layout to an xml file. So, to do this you will need a reference PC, which can be any Windows 10 machine.
Here is my customised layout.
Just be aware when creating your layout, that any App not on the System when deployed may leave an empty space.
Open up PowerShell and run:
Export-StartLayout -Path LayoutModification.xml
Keep the file name as LayoutModification.xml as it is the file name Windows looks for.
Now that we have our XML file, we can use this as part of a Task Sequence to add it to our Computer during Deployment.
Open up your Deployment Share, and go to the Scripts folder. Create a new folder called ‘CustomStartMenu’
Copy the XML file into this folder. Also, create a new text file, called ‘CustomStartMenu.cmd’, don’t forget to remove the ‘.txt’ at the end of the file name.
Edit CustomStartMenu.cmd and enter:
xcopy %~dp0LayoutModification.xml d:\users\default\appdata\local\Microsoft\windows\shell
This will copy our custom XML to the Default Users profile on our new computer.
Now go into MDT and Edit your Windows 10 Task Sequence.
Find the PostInstall phase and expand it.
Select Add, General, Run Command Line.
Use the Up arrow to make sure it is above Restart Computer.
Name your Command Line so it is descriptive, and enter the following command line:
%scriptroot%\CustomStartMenu\CustomStartMenu.cmd
This tells MDT to run our CustomStartMenu.cmd file during the post install phase, which is still during the WinPE phase of installation, which is why we copy the XML to D: and not C:.
Now when our Windows 10 machine is deployed all users will start with our customised Start Menu.
Update – 15/05/19 Check out this article for help customising the Task Bar.
Whilst searching for a similar method to control the TaskBar, I came across this solution. Unfortunately I couldn’t make this work with a Task Sequence completely. We can copy the required files to the computer, but I haven’t been successful in kicking it off automatically at the initial logon of a new user account. It is entirely possible am doing something wrong. What I decided to do instead, was create a Task Sequence entry to copy the files from the MDT server to the C:\Windows folder, and then I used a Group Policy to run the Taskband.ps1 file at logon.
On my reference machine I configured the Task Bar as I liked it, then followed the article to export the relevant files and registry keys.
In my Deployment Share I created an MTB folder.
Move all the relevant files into a Sub Folder of MTB called ManageTaskBar. In the MTB folder I created a TaskBar.cmd file which contains the following:
xcopy %~dp0Managetaskbar "C:\Windows\ManageTaskBar" /e /y /h /I
In my Task Sequence I add a new Run Command in the State Restore section:
%scriptroot%\MTB\TaskBar.cmd
The last thing I want to cover in Part 6 is how we can further customise our Task Sequence based on the hardware of the client device.
Yeah, Looks great. But my WDT/WDS deployment has been hung on “Running Action: Custom Start Menu” for 20 minutes now. When it does boot, it also wont skip the OOBE and doesn’t finish running the Litetouch scripts. Followed your steps, this is what I get. Thought?
What happens if you disable that step? Checked any logs?
I am also having the same issue. During the task sequence to insert your custome start menu it will hang. Did you guys found a solution?
Good morning! Thanks for the tutorial. It was helpful but unfortunately, I’m having a similar issue like Carl is having. I used a code that has both the custom start menu & custom taskbar. Followed step by step but its coming back with errors. It installs Windows 10 but it stops the rest of the MDT process. Any suggestions on what could be wrong & how to get this work?
Yeah i think so, https://windowsserveressentials.com/2018/03/08/customising-the-windows-10-taskbar/ skip the whole ‘manage taskbar’ bit. Create a better XML for your start & taskbar customisations, and deploy that file instead, either via GPO or through task sequence.