Minimize the powershell window when no parameters are provided

This commit is contained in:
Raphire
2026-02-01 13:40:22 +01:00
parent c6e3edbe40
commit 95e844923e

View File

@@ -140,10 +140,11 @@ $arguments = $($PSBoundParameters.GetEnumerator() | ForEach-Object {
Write-Output "" Write-Output ""
Write-Output "> Running Win11Debloat..." Write-Output "> Running Win11Debloat..."
# Minimize the powershell window when CLI is not specified # Minimize the powershell window when no parameters are provided
if (-not $CLI) { if ($arguments.Count -eq 0) {
$windowStyle = "Minimized" $windowStyle = "Minimized"
} else { }
else {
$windowStyle = "Normal" $windowStyle = "Normal"
} }