Windows 10 came with a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
There are lots of topics online regarding the same article, but none of those have anything when something goes wrong in the process.
To start the installation:
-Copy the all the folders and files from Windows 10 DVD to a know location. From the copied folder copy the install.wim file from sources folder to desktop or i prefer to create a folder for that in a drive and paste it there.
I copied the script to the same folder as my install.wim file.
-Run power shell as Administrator and change directory to the folder where wim file and script are copied
-Run the command ".\removeapps.ps1
-pathtowim c:\10\install.wim -selectapps $true"
you might likely get the error "script.ps1 is not digitally signed. You cannot run this script on the current system."
-Run the command
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass"