From 1ef899232062a5d3029c3375e4dc66140765c928 Mon Sep 17 00:00:00 2001 From: Raphire <9938813+Raphire@users.noreply.github.com> Date: Mon, 2 Feb 2026 21:52:09 +0100 Subject: [PATCH] Respect NoRestartExplorer flag in GUI --- Win11Debloat.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Win11Debloat.ps1 b/Win11Debloat.ps1 index 4450e3d..79e7faa 100755 --- a/Win11Debloat.ps1 +++ b/Win11Debloat.ps1 @@ -1419,7 +1419,7 @@ function OpenGUI { try { ExecuteAllChanges - if (-not $script:Params.ContainsKey("Sysprep") -and -not $script:Params.ContainsKey("User")) { + if (-not $script:Params.ContainsKey("Sysprep") -and -not $script:Params.ContainsKey("User") -and -not $script:Params.ContainsKey("NoRestartExplorer")) { # Ask user if they want to restart Explorer now $result = [System.Windows.MessageBox]::Show( 'Would you like to restart the Windows Explorer process now to apply all changes? Some changes may not take effect until a restart is performed.',