diff --git a/functions/public/Invoke-WPFMicrowin.ps1 b/functions/public/Invoke-WPFMicrowin.ps1 index 922748d9..3d4f0a9d 100644 --- a/functions/public/Invoke-WPFMicrowin.ps1 +++ b/functions/public/Invoke-WPFMicrowin.ps1 @@ -171,13 +171,14 @@ public class PowerManagement { Remove-Features -keepDefender:$keepDefender Write-Host "Removing features complete!" - Write-Host "Removing Appx Bloat" if (!$keepPackages) { + Write-Host "Removing OS packages" Remove-Packages } if (!$keepProvisionedPackages) { + Write-Host "Removing Appx Bloat" Remove-ProvisionedPackages -keepSecurity:$keepDefender }