Enhanced script for removing built-in apps when creating a Reference Image for Windows 10
For a little more than one year ago, I posted a script that would automate the process of removing built-in applications when creating a Windows 10 reference image. Since then, the script has been amended a couple of times, and it’s now time for another iteration.
This updated version of the script includes the following changes:
- Added new white list variables for easier management and visibility of apps being excluded from the removal process
- Added capability to remove Features on Demand V2 applications, like Quick Assist and Contact Support applications
- Fixed a bug when building the appx package list not to be fully populated, resulting in all unwanted appx packages were not removed
- Added a function to write the output of the script to a log file called RemovedApps.log located in C:\Windows\Temp.
Get the updated script
You’ll find the updated script in the original post, available below:
Chief Technical Architect and Enterprise Mobility MVP since 2016. Nickolaj has been in the IT industry for the past 10 years specializing in Enterprise Mobility and Security, Windows devices and deployments including automation. Awarded as PowerShell Hero in 2015 by the community for his script and tools contributions. Creator of ConfigMgr Prerequisites Tool, ConfigMgr OSD FrontEnd, ConfigMgr WebService to name a few. Frequent speaker at conferences and user groups.