speedup: batch appx removal (at cost of less user feedback)
This ESPECIALLY helps during a second run of the removal script, where the result is almost instantaneous. Instead of initializing the Remove-AppxPackage routine N times, it only needs to do it once. The downside is that we can't control feedback to the user on the progress - and users frequently complain about hung processes etc. There is SOME feedback coming from the Remove-AppxPackage process - hopefully that will be enough. I also ensured that -AllUsers packages were removed, which was not done previously. If there was a reason for NOT removing -AllUsers for the blacklist, then it can be removed, but the DeBloat All function does remove it, so to be consistent it seemed best to do the same here. In terms of $NonRemovables - I had just added that but on second thought, let the user be smarter than the computer. The user now has the tools to detect if there are conflicts with nonRemovables, so if they choose to try to remove it anyway, don't prevent that. The computer might be lying after all...pull/138/head
parent
445da40eaa
commit
e45c1ae76d
Loading…
Reference in New Issue