mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 02:56:17 +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:
@@ -61,6 +61,7 @@ function RemoveApps
|
||||
"*Microsoft.Print3D*"
|
||||
"*Microsoft.RemoteDesktop*"
|
||||
"*Microsoft.SkypeApp*"
|
||||
"*Microsoft.Todos*"
|
||||
"*Microsoft.WindowsAlarms*"
|
||||
"*Microsoft.WindowsFeedbackHub*"
|
||||
"*Microsoft.WindowsMaps*"
|
||||
@@ -82,8 +83,10 @@ function RemoveApps
|
||||
#
|
||||
# If you wish to REMOVE any of the apps below simply remove the # character
|
||||
# in front of the specific app in the list below.
|
||||
#"*Microsoft.GamingApp*"
|
||||
#"*Microsoft.MSPaint*" # Paint 3D
|
||||
#"*Microsoft.People*"
|
||||
#"*Microsoft.PowerAutomateDesktop*"
|
||||
#"*Microsoft.ScreenSketch*"
|
||||
#"*Microsoft.Windows.Photos*"
|
||||
#"*Microsoft.WindowsCalculator*"
|
||||
@@ -103,6 +106,8 @@ function RemoveApps
|
||||
Write-Output "Attempting to remove $app"
|
||||
|
||||
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