mirror of
https://github.com/Sycnex/Windows10Debloater.git
synced 2025-09-25 11:09:06 +02:00
Added CanonicalGroupLimited.UbuntuonWindows to whitelisted apps
This commit is contained in:
parent
78e439b703
commit
173d106ef1
@ -19,7 +19,7 @@ Function Start-Debloat {
|
|||||||
|
|
||||||
#Removes AppxPackages
|
#Removes AppxPackages
|
||||||
#Credit to /u/GavinEke for a modified version of my whitelist code
|
#Credit to /u/GavinEke for a modified version of my whitelist code
|
||||||
[regex]$WhitelistedApps = 'Microsoft.Paint3D|Microsoft.WindowsCalculator|Microsoft.WindowsStore|Microsoft.Windows.Photos'
|
[regex]$WhitelistedApps = 'Microsoft.Paint3D|Microsoft.WindowsCalculator|Microsoft.WindowsStore|Microsoft.Windows.Photos|CanonicalGroupLimited.UbuntuonWindows'
|
||||||
Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage -ErrorAction SilentlyContinue
|
Get-AppxPackage -AllUsers | Where-Object {$_.Name -NotMatch $WhitelistedApps} | Remove-AppxPackage -ErrorAction SilentlyContinue
|
||||||
Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -NotMatch $WhitelistedApps} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
|
Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -NotMatch $WhitelistedApps} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user