mirror of
https://github.com/Sycnex/Windows10Debloater.git
synced 2024-11-24 11:45:29 +00:00
Changed the $_.name on lines 24, 25, 32, and 33
I changed the $_.name on lines 24, 25, 32, and 33 to $_.packagename since the whitelisted apps "Photos" and "Store" were still being removed. Now they shouldn't be removed.
This commit is contained in:
parent
d02dfa39ed
commit
262777bb66
@ -15,16 +15,16 @@ Function Start-Debloat {
|
||||
Get-AppxPackage -AllUsers |
|
||||
Where-Object {$_.name -notlike "*Microsoft.Paint3D"} |
|
||||
Where-Object {$_.name -notlike "*Microsoft.WindowsCalculator*"} |
|
||||
Where-Object {$_.name -notlike "*Microsoft.WindowsStore*"} |
|
||||
Where-Object {$_.name -notlike "*Microsoft.Windows.Photos*"} |
|
||||
Where-Object {$_.packagename -notlike "*Microsoft.WindowsStore*"} |
|
||||
Where-Object {$_.packagename -notlike "*Microsoft.Windows.Photos*"} |
|
||||
Remove-AppxPackage -ErrorAction SilentlyContinue
|
||||
|
||||
#Removes AppxProvisionedPackages
|
||||
Get-AppxProvisionedPackage -online |
|
||||
Where-Object {$_.packagename -notlike "*Microsoft.Paint3D*"} |
|
||||
Where-Object {$_.packagename -notlike "*Microsoft.WindowsCalculator*"} |
|
||||
Where-Object {$_.name -notlike "*Microsoft.WindowsStore*"} |
|
||||
Where-Object {$_.name -notlike "*Microsoft.Windows.Photos*"} |
|
||||
Where-Object {$_.packagename -notlike "*Microsoft.WindowsStore*"} |
|
||||
Where-Object {$_.packagename -notlike "*Microsoft.Windows.Photos*"} |
|
||||
Remove-AppxProvisionedPackage -online -ErrorAction SilentlyContinue
|
||||
}
|
||||
Function Remove-Keys {
|
||||
|
Loading…
Reference in New Issue
Block a user