mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 11:06:18 +00:00
Now deletes apps from windows image entirely (#2)
Added a few new windows packages: Todo, gaming app & power automate.
This commit is contained in:
@@ -100,6 +100,7 @@ By default, this script only removes apps that most people are unlikely to ever
|
|||||||
- Microsoft.Print3D
|
- Microsoft.Print3D
|
||||||
- Microsoft.RemoteDesktop
|
- Microsoft.RemoteDesktop
|
||||||
- Microsoft.SkypeApp
|
- Microsoft.SkypeApp
|
||||||
|
- Microsoft.Todos
|
||||||
- Microsoft.WindowsAlarms
|
- Microsoft.WindowsAlarms
|
||||||
- Microsoft.WindowsFeedbackHub
|
- Microsoft.WindowsFeedbackHub
|
||||||
- Microsoft.WindowsMaps
|
- Microsoft.WindowsMaps
|
||||||
@@ -116,8 +117,10 @@ By default, this script only removes apps that most people are unlikely to ever
|
|||||||
- king.com.CandyCrushSodaSaga
|
- king.com.CandyCrushSodaSaga
|
||||||
|
|
||||||
### These apps will NOT be deleted by default:
|
### These apps will NOT be deleted by default:
|
||||||
|
- Microsoft.GamingApp
|
||||||
- Microsoft.MSPaint (Paint 3D)
|
- Microsoft.MSPaint (Paint 3D)
|
||||||
- Microsoft.People
|
- Microsoft.People
|
||||||
|
- Microsoft.PowerAutomateDesktop
|
||||||
- Microsoft.ScreenSketch
|
- Microsoft.ScreenSketch
|
||||||
- Microsoft.Windows.Photos
|
- Microsoft.Windows.Photos
|
||||||
- Microsoft.WindowsCalculator
|
- Microsoft.WindowsCalculator
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ function RemoveApps
|
|||||||
"*Microsoft.Print3D*"
|
"*Microsoft.Print3D*"
|
||||||
"*Microsoft.RemoteDesktop*"
|
"*Microsoft.RemoteDesktop*"
|
||||||
"*Microsoft.SkypeApp*"
|
"*Microsoft.SkypeApp*"
|
||||||
|
"*Microsoft.Todos*"
|
||||||
"*Microsoft.WindowsAlarms*"
|
"*Microsoft.WindowsAlarms*"
|
||||||
"*Microsoft.WindowsFeedbackHub*"
|
"*Microsoft.WindowsFeedbackHub*"
|
||||||
"*Microsoft.WindowsMaps*"
|
"*Microsoft.WindowsMaps*"
|
||||||
@@ -82,8 +83,10 @@ function RemoveApps
|
|||||||
#
|
#
|
||||||
# If you wish to REMOVE any of the apps below simply remove the # character
|
# If you wish to REMOVE any of the apps below simply remove the # character
|
||||||
# in front of the specific app in the list below.
|
# in front of the specific app in the list below.
|
||||||
|
#"*Microsoft.GamingApp*"
|
||||||
#"*Microsoft.MSPaint*" # Paint 3D
|
#"*Microsoft.MSPaint*" # Paint 3D
|
||||||
#"*Microsoft.People*"
|
#"*Microsoft.People*"
|
||||||
|
#"*Microsoft.PowerAutomateDesktop*"
|
||||||
#"*Microsoft.ScreenSketch*"
|
#"*Microsoft.ScreenSketch*"
|
||||||
#"*Microsoft.Windows.Photos*"
|
#"*Microsoft.Windows.Photos*"
|
||||||
#"*Microsoft.WindowsCalculator*"
|
#"*Microsoft.WindowsCalculator*"
|
||||||
@@ -103,6 +106,8 @@ function RemoveApps
|
|||||||
Write-Output "Attempting to remove $app"
|
Write-Output "Attempting to remove $app"
|
||||||
|
|
||||||
Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage
|
Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage
|
||||||
|
|
||||||
|
Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -like $app} | ForEach-Object { Remove-ProvisionedAppxPackage -Online -AllUsers -PackageName $_.PackageName }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user