MDT 2013 Windows 10 and the MSP Part 5

mslogo6In 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.

DefaultStart

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.

Custom

Just be aware when creating your layout, that any App not on the System when deployed may leave an empty space.

mising app

Open up PowerShell and run:

Export-StartLayout -Path LayoutModification.xml

2017-03-01_14-52-17

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’

MDT Server

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

MDT Server 2

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.

Capture

Select Add, General, Run Command Line.

2017-03-01_14-57-23

Use the Up arrow to make sure it is above Restart Computer.

Capture2

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:.

Capture3

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.

MTB1

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

MTB2

In my Task Sequence I add a new Run Command in the State Restore section:

%scriptroot%\MTB\TaskBar.cmd

Capture4

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.

About Robert Pearman
Robert Pearman is a UK based Small Business Server enthusiast. He has been working within the SMB IT Industry for what feels like forever. Robert likes Piña colada and taking walks in the rain, on occasion he also enjoys writing about Small Business Technology like Windows Server Essentials or more recently writing PowerShell Scripts. If you're in trouble, and you can find him, maybe you can ask him a question.

5 Responses to MDT 2013 Windows 10 and the MSP Part 5

  1. Shawn C says:

    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?

  2. Carl Leblanc says:

    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?

  3. Andre M says:

    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?

Leave a reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: