Update Invoke-WPFMicrowin.ps1 (#2251)

Distinguish tasks better
This commit is contained in:
CodingWonders 2024-07-08 22:14:40 +02:00 committed by GitHub
parent 47dbbfb4ff
commit 96d80c486b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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