From abff3f0c29accd2d64396c8e53e3363e8bf35eea Mon Sep 17 00:00:00 2001 From: Raphire <9938813+Raphire@users.noreply.github.com> Date: Tue, 18 Jun 2024 23:34:27 +0200 Subject: [PATCH] Get.ps1 now automatically launches the script as administrator --- Get.ps1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Get.ps1 b/Get.ps1 index 78051a9..d5251e7 100644 --- a/Get.ps1 +++ b/Get.ps1 @@ -1,5 +1,3 @@ -#Requires -RunAsAdministrator - param ( [switch]$Silent, [switch]$RunAppConfigurator, @@ -70,7 +68,7 @@ Write-Output "" 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" +$debloatProcess = Start-Process powershell.exe -PassThru -ArgumentList "-executionpolicy bypass -File $env:TEMP\Win11Debloat\Win11Debloat-master\Win11Debloat.ps1 $arguments" -Verb RunAs $debloatProcess.WaitForExit() Write-Output ""