Import “dynamic” start-menu during OSD SCCM

We had the need to import two different start-menus.

One which includes the Office Shortcuts and one without.

But this method you can also use to build your required “dynamic” start layout in Windows 10.

With MS Office installed:

dyn1

Without:

dyn2

The first step is that you export the two start-layouts with the following command:

export-startlayout –path <path><file name>.xml

https://docs.microsoft.com/en-us/windows/configuration/customize-and-export-start-layout

Name it for example:

Start_with_office.xml

And:

Start_without_office.xml

Afterwards create a small powershell script – the scripts copys the IE11 .Ink file and checks if Office 2013 (Office15)

is installed / if yes the start-layout with the Office Icons will be imported if not the default without Office will

be imported.

dyn3

To Import the IE11 Icon again -> you need to copy also the IE.ink file to the destination.

In the package place now the Internet Explorer.Ink file plus the two .xml Layouts and the powershell script:

dyn4

Distribute the package to the required DP’s and you can run the import during the task-sequence:

2017-08-27 16_10_49-Import _dynamic_ start-menu during OSD SCCM - OneNote

Remove built in apps in Windows 10 Professional including Feedback, Support

Target: Remove all Built in apps from Windows 10 for example XBOX

I used the Script from Andre Picker- that can be found on technet:

https://gallery.technet.microsoft.com/Removing-Built-in-apps-65dc387b

Copy the WIM-file of your Windows 10 to an Windows 10 computer.

Start a command-line as administrator and run the script:

C:\win10_en> .\removeapps.ps1 -pathtowim .\PROD_Win10x64en.wim -selectapps $true -index 2

In my case we remove all apps except the ones marked in green:

Remove the following Built-in apps:

Do you really want to delete the following App: Microsoft.3DBuilder (Y/N): y

Delete: Microsoft.3DBuilder

Do you really want to delete the following App: Microsoft.Appconnector (Y/N): y

Delete: Microsoft.Appconnector

Do you really want to delete the following App: Microsoft.BingFinance (Y/N): y

Delete: Microsoft.BingFinance

Do you really want to delete the following App: Microsoft.BingNews (Y/N): y

Delete: Microsoft.BingNews

Do you really want to delete the following App: Microsoft.BingSports (Y/N): y

Delete: Microsoft.BingSports

Do you really want to delete the following App: Microsoft.BingWeather (Y/N): y

Delete: Microsoft.BingWeather

Do you really want to delete the following App: Microsoft.CommsPhone (Y/N): y

Delete: Microsoft.CommsPhone

Do you really want to delete the following App: Microsoft.ConnectivityStore (Y/N): y

Delete: Microsoft.ConnectivityStore

Do you really want to delete the following App: Microsoft.Getstarted (Y/N): y

Delete: Microsoft.Getstarted

Do you really want to delete the following App: Microsoft.Messaging (Y/N): y

Delete: Microsoft.Messaging

Do you really want to delete the following App: Microsoft.MicrosoftOfficeHub (Y/N): y

Delete: Microsoft.MicrosoftOfficeHub

Do you really want to delete the following App: Microsoft.MicrosoftSolitaireCollection (Y/N): y

Delete: Microsoft.MicrosoftSolitaireCollection

Do you really want to delete the following App: Microsoft.Office.OneNote (Y/N): y

Delete: Microsoft.Office.OneNote

Do you really want to delete the following App: Microsoft.Office.Sway (Y/N): y

Delete: Microsoft.Office.Sway

Do you really want to delete the following App: Microsoft.People (Y/N): y

Delete: Microsoft.People

Do you really want to delete the following App: Microsoft.SkypeApp (Y/N): y

Delete: Microsoft.SkypeApp

Do you really want to delete the following App: Microsoft.Windows.Photos (Y/N): n

Skipped: Microsoft.Windows.Photos

Do you really want to delete the following App: Microsoft.WindowsAlarms (Y/N): n

Skipped: Microsoft.WindowsAlarms

Do you really want to delete the following App: Microsoft.WindowsCalculator (Y/N): n

Skipped: Microsoft.WindowsCalculator

Do you really want to delete the following App: Microsoft.WindowsCamera (Y/N): n

Skipped: Microsoft.WindowsCamera

Do you really want to delete the following App: microsoft.windowscommunicationsapps (Y/N): y

Delete: microsoft.windowscommunicationsapps

Do you really want to delete the following App: Microsoft.WindowsMaps (Y/N): y

Delete: Microsoft.WindowsMaps

Do you really want to delete the following App: Microsoft.WindowsPhone (Y/N): y

Delete: Microsoft.WindowsPhone

Do you really want to delete the following App: Microsoft.WindowsSoundRecorder (Y/N): y

Delete: Microsoft.WindowsSoundRecorder

Do you really want to delete the following App: Microsoft.WindowsStore (Y/N): y

Delete: Microsoft.WindowsStore

Do you really want to delete the following App: Microsoft.XboxApp (Y/N): y

Delete: Microsoft.XboxApp

Do you really want to delete the following App: Microsoft.ZuneMusic (Y/N): y

Delete: Microsoft.ZuneMusic

Do you really want to delete the following App: Microsoft.ZuneVideo (Y/N): y

Delete: Microsoft.ZuneVideo

Dismount-WindowsImage…

Please wait…

Remove temporary directory…

Then take the WIM-File / Include it in your caputure or your productive task-sequence.

As we wanted also to remove the Feedback and the Support App we had to use another script. I found a tool “install_wim_tweak.exe” which allows to uninstall some of the default apps which cannot be uninstalled. Like Cortana, Freedback, Support.

The install_wim_tweak.exe utility and the code was created by Legolash2o

During the task-sequence the .cmd file is running:

remove1

Which includes the following two files in an package:

remove2

The .cmd file includes the following:

remove3

Set default file association in windows 10 professional during OSD

Target: Set Internet explorer 11 as default Browser on windows 10 , Set Adobe Reader DC as default PDF-Explorer

On the Windows 10 professional device set your default file applications like you require it:
Afterwards start a command line as administrator and run the following command:
Dism /Online /Export-DefaultAppAssociations:c:\temp\AppAssoc.xml

Opening the xml file you will see that IE11 and Adobe PDF is now the default:

2017-08-27 15_23_19-How To set default file association in windows 10 - Microsoft OneNote

Now copy the AppAssoc.xml on your SCCM-Share and create a package for it / no program required. Distribute the package to the required distribution points.

In my case the package name is “Windows-10-Customizing”:

2017-08-27 15_23_53-How To set default file association in windows 10 - Microsoft OneNote

And the command line to do the import is the following:
Dism.exe /online /Import-DefaultAppAssociations:.\AppAssoc.xml

Then you can run your Windows10 Task-Sequence and you will see that IE11 is now the default web-browser and Adobe PDF the default PDF-Reader.