Download the PowerShell Script from the link below:

https://github.com/chukwupg/tools-and-solutions/blob/main/Windows10-Lab-Debloater.ps1

How to run it

  1. Copy the script into your Windows 10 VM.
  1. If necessary, allow script execution for this session only:
Set-ExecutionPolicy -Scope Process Bypass
  1. Preview the applications first:
.\Windows10-Lab-Debloater.ps1
  1. Remove the default applications:
.\Windows10-Lab-Debloater.ps1 -Remove
  1. Include optional consumer applications:
.\Windows10-Lab-Debloater.ps1 -Remove -IncludeOptional

To remove matching provisioned packages as well:

.\Windows10-Lab-Debloater.ps1 -Remove -IncludeOptional -RemoveProvisioned

Important notes