Added option to forcefully remove edge (#82)

Additionally:
* Added extra check to Get.ps1 to prevent error if user cancels UAC prompt 
* Removed Dolby from appslist (#78)
This commit is contained in:
Jeffrey
2024-07-02 18:51:00 +02:00
committed by GitHub
parent 6614cdfe8b
commit 6049800f10
4 changed files with 117 additions and 17 deletions

View File

@@ -9,6 +9,7 @@ param (
[switch]$RemoveCommApps,
[switch]$RemoveDevApps,
[switch]$RemoveW11Outlook,
[switch]$ForceRemoveEdge,
[switch]$DisableDVR,
[switch]$DisableTelemetry,
[switch]$DisableBingSearches, [switch]$DisableBing,
@@ -81,7 +82,11 @@ Write-Output "> Running Win11Debloat..."
# Run Win11Debloat script with the provided arguments
$debloatProcess = Start-Process powershell.exe -PassThru -ArgumentList "-executionpolicy bypass -File $env:TEMP\Win11Debloat\Win11Debloat-master\Win11Debloat.ps1 $arguments" -Verb RunAs
$debloatProcess.WaitForExit()
# Wait for the process to finish before continuing
if($debloatProcess -ne $null) {
$debloatProcess.WaitForExit()
}
Write-Output ""
Write-Output "> Cleaning up..."