diff --git a/scripts/remove-default-apps.ps1 b/scripts/remove-default-apps.ps1 index c795383..e6a09bf 100644 --- a/scripts/remove-default-apps.ps1 +++ b/scripts/remove-default-apps.ps1 @@ -39,6 +39,7 @@ $apps = @( "king.com.CandyCrushSaga" ) +echo "Uninstalling default apps" foreach ($app in $apps) { Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -ErrorAction SilentlyContinue @@ -46,3 +47,15 @@ foreach ($app in $apps) { where DisplayName -EQ $app | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue } + +echo "Renaming unremovable apps" +$apps = @( + "Microsoft.BioEnrollment_cw5n1h2txyewy" + "Microsoft.XboxGameCallableUI_cw5n1h2txyewy" + "Microsoft.XboxIdentityProvider_cw5n1h2txyewy" + "WindowsFeedback_cw5n1h2txyewy" +) + +foreach ($app in $apps) { + mv "$env:WinDir\SystemApps\$app" "$env:WinDir\SystemApps\_$app" +}