mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-02-17 07:56:24 +00:00
Minimize the powershell window when no parameters are provided
This commit is contained in:
7
Get.ps1
7
Get.ps1
@@ -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"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user