mirror of
https://github.com/Sycnex/Windows10Debloater.git
synced 2025-05-10 07:32:09 +00:00
ProvisionedPackage uses DisplayName, not Name
Bug in original code. Since $_.Name is $null, it is always considered to match, so nothing was ever removed.
This commit is contained in:
parent
e45c1ae76d
commit
78830e4676
@ -541,7 +541,7 @@ $RemoveAllBloatware.Add_Click( {
|
|||||||
#Removes AppxPackages
|
#Removes AppxPackages
|
||||||
Get-AppxPackage -AllUsers | Where { !($_.Name -cmatch $global:WhiteListedAppsRegex) -and !($NonRemovables -cmatch $_.Name) } | Remove-AppxPackage
|
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 { !($_.Name -cmatch $global:WhiteListedAppsRegex) -and !($NonRemovables -cmatch $_.Name) } | Remove-AppxProvisionedPackage -Online
|
Get-AppxProvisionedPackage -Online | Where { !($_.DisplayName -cmatch $global:WhiteListedAppsRegex) -and !($NonRemovables -cmatch $_.DisplayName) } | Remove-AppxProvisionedPackage -Online
|
||||||
}
|
}
|
||||||
|
|
||||||
#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