Now deletes apps from windows image entirely (#2)

Added a few new windows packages: Todo, gaming app & power automate.
This commit is contained in:
Raphire
2023-02-05 22:28:41 +01:00
parent 8436c8d81c
commit 41bb36f0ab
2 changed files with 8 additions and 0 deletions

View File

@@ -100,6 +100,7 @@ By default, this script only removes apps that most people are unlikely to ever
- Microsoft.Print3D
- Microsoft.RemoteDesktop
- Microsoft.SkypeApp
- Microsoft.Todos
- Microsoft.WindowsAlarms
- Microsoft.WindowsFeedbackHub
- Microsoft.WindowsMaps
@@ -116,8 +117,10 @@ By default, this script only removes apps that most people are unlikely to ever
- king.com.CandyCrushSodaSaga
### These apps will NOT be deleted by default:
- Microsoft.GamingApp
- Microsoft.MSPaint (Paint 3D)
- Microsoft.People
- Microsoft.PowerAutomateDesktop
- Microsoft.ScreenSketch
- Microsoft.Windows.Photos
- Microsoft.WindowsCalculator

View File

@@ -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 }
}
}