W4RH4WK/Debloat-Windows-10

"remove-default-apps.ps1" does not account for dependenices

开放

#188 创建于 2019年2月17日

 (3 条评论) (0 个反应) (0 位负责人)PowerShell (794 个派生)batch import
help wanted

仓库指标

星标
 (6,144 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

When running "remove-default-apps.ps1" on a fresh Windows 10 Pro, it fails upon doing a:

Get-AppxPackage Microsoft.Advertising.Xaml | Remove-AppxPackage

This is because several packages depend on this, such as Microsoft.People, microsoft.windowscommunicationsapps, as so forth. So it should be moved to the bottom of the list, or the logic should be expanded to check for dependencies first and uninstall those before uninstall.

贡献者指南