From 0971b72c48a9a2716dacc54399afc5a15308749a Mon Sep 17 00:00:00 2001 From: Raphire <9938813+Raphire@users.noreply.github.com> Date: Sun, 14 Dec 2025 02:17:01 +0100 Subject: [PATCH] Fix script not exiting correctly when selecting 0 options in Custom Mode --- Win11Debloat.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index e7d7bf7..12accfd 100755 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -1761,7 +1761,7 @@ else { # If the number of keys in SPParams equals the number of keys in Params then no modifications/changes were selected # or added by the user, and the script can exit without making any changes. -if ($SPParamCount -eq $script:Params.Keys.Count) { +if (($SPParamCount -eq $script:Params.Keys.Count) -or (($script:Params.Keys.Count -eq 1) -and ($script:Params.Keys -contains 'CreateRestorePoint'))) { Write-Output "The script completed without making any changes." AwaitKeyToExit