mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-02-17 16:06:59 +00:00
Compare commits
4 Commits
2026.02.01
...
2026.02.01
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
91f3dbf5e6 | ||
|
|
57f5e1c632 | ||
|
|
95e844923e | ||
|
|
c6e3edbe40 |
Binary file not shown.
|
Before Width: | Height: | Size: 486 KiB After Width: | Height: | Size: 82 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 287 KiB |
10
Get.ps1
10
Get.ps1
@@ -140,8 +140,16 @@ $arguments = $($PSBoundParameters.GetEnumerator() | ForEach-Object {
|
||||
Write-Output ""
|
||||
Write-Output "> Running Win11Debloat..."
|
||||
|
||||
# Minimize the powershell window when no parameters are provided
|
||||
if ($arguments.Count -eq 0) {
|
||||
$windowStyle = "Minimized"
|
||||
}
|
||||
else {
|
||||
$windowStyle = "Normal"
|
||||
}
|
||||
|
||||
# Run Win11Debloat script with the provided arguments
|
||||
$debloatProcess = Start-Process powershell.exe -PassThru -ArgumentList "-executionpolicy bypass -File $env:TEMP\Win11Debloat\Win11Debloat.ps1 $arguments" -Verb RunAs
|
||||
$debloatProcess = Start-Process powershell.exe -WindowStyle $windowStyle -PassThru -ArgumentList "-executionpolicy bypass -File $env:TEMP\Win11Debloat\Win11Debloat.ps1 $arguments" -Verb RunAs
|
||||
|
||||
# Wait for the process to finish before continuing
|
||||
if ($null -ne $debloatProcess) {
|
||||
|
||||
Reference in New Issue
Block a user