From 0e0576e67bd156e4982975400cd3a77635f352e5 Mon Sep 17 00:00:00 2001 From: Raphire <9938813+Raphire@users.noreply.github.com> Date: Thu, 3 Aug 2023 22:40:19 +0200 Subject: [PATCH] Added confirmation to custom mode --- Win11Debloat.ps1 | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index 230b73f..d07ed64 100644 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -63,7 +63,8 @@ function RemoveApps { $app = $app.Substring(0, $app.IndexOf(' ')) } - Write-Output "Attempting to remove $app" + $appString = $app.Trim('*') + Write-Output "Attempting to remove $appString..." # Remove installed app for all existing users Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage @@ -315,7 +316,15 @@ if ((-NOT $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or ( } } - Write-Output "" + Write-Output "" + Write-Output "" + Write-Output "" + Write-Output "Press any key to confirm your choices and execute the script..." + $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown") + Clear-Host + Write-Output "-------------------------------------------------------------------------------------------" + Write-Output " Win11Debloat Script - Custom Configuration" + Write-Output "-------------------------------------------------------------------------------------------" } } }