W4RH4WK / Debloat-Windows-10

A Collection of Scripts Which Disable / Remove Windows 10 Features and Apps
Other
6.03k stars 853 forks source link

Update remove-default-apps.ps1 #292

Closed bknickelbine closed 2 years ago

bknickelbine commented 2 years ago

Move get-appxprovisionedpackage outside loop so that it only needs to be run once, instead of once for every app. Switch Where-Object clause to .Where() to improve performance.

W4RH4WK commented 2 years ago

Never imagined this to be so performance critical xD. Thanks.