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
- Copy the script into your Windows 10 VM.
- . Open PowerShell as Administrator and navigate to its folder.
- If necessary, allow script execution for this session only:
Set-ExecutionPolicy -Scope Process Bypass
- Preview the applications first:
.\Windows10-Lab-Debloater.ps1
- Remove the default applications:
.\Windows10-Lab-Debloater.ps1 -Remove
- 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
- Logs are saved to
Desktop\Lab-Debloat-Logs.
- Default execution only previews changes.
- Provisioned package removal affects future user profiles; it does not automatically remove packages from every existing profile.
- Some removed Store applications may require reinstalling through Microsoft Store.