mirror of
https://github.com/Sycnex/Windows10Debloater.git
synced 2025-05-10 07:32:09 +00:00
remove --allUsers packages after -online packages have been removed
There seems to be some kind of dependency. -AllUsers packages remove better when they are the last things to be removed.
This commit is contained in:
parent
78830e4676
commit
2536d873f6
@ -539,9 +539,9 @@ $RemoveAllBloatware.Add_Click( {
|
|||||||
|
|
||||||
Function DebloatAll {
|
Function DebloatAll {
|
||||||
#Removes AppxPackages
|
#Removes AppxPackages
|
||||||
Get-AppxPackage -AllUsers | Where { !($_.Name -cmatch $global:WhiteListedAppsRegex) -and !($NonRemovables -cmatch $_.Name) } | Remove-AppxPackage
|
|
||||||
Get-AppxPackage | Where { !($_.Name -cmatch $global:WhiteListedAppsRegex) -and !($NonRemovables -cmatch $_.Name) } | Remove-AppxPackage
|
Get-AppxPackage | Where { !($_.Name -cmatch $global:WhiteListedAppsRegex) -and !($NonRemovables -cmatch $_.Name) } | Remove-AppxPackage
|
||||||
Get-AppxProvisionedPackage -Online | Where { !($_.DisplayName -cmatch $global:WhiteListedAppsRegex) -and !($NonRemovables -cmatch $_.DisplayName) } | Remove-AppxProvisionedPackage -Online
|
Get-AppxProvisionedPackage -Online | Where { !($_.DisplayName -cmatch $global:WhiteListedAppsRegex) -and !($NonRemovables -cmatch $_.DisplayName) } | Remove-AppxProvisionedPackage -Online
|
||||||
|
Get-AppxPackage -AllUsers | Where { !($_.Name -cmatch $global:WhiteListedAppsRegex) -and !($NonRemovables -cmatch $_.Name) } | Remove-AppxPackage
|
||||||
}
|
}
|
||||||
|
|
||||||
#Creates a PSDrive to be able to access the 'HKCR' tree
|
#Creates a PSDrive to be able to access the 'HKCR' tree
|
||||||
|
Loading…
Reference in New Issue
Block a user