Skip to content

Commit 28006fe

Browse files
author
Ionuț Bara
committed
logical of uwp removal
1 parent 7e3b59c commit 28006fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Script_Run.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ bcdedit /set hypervisorlaunchtype off
4343
CLS
4444
echo Removing Windows Security UWP App...
4545
:: Remove Windows Security App
46-
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""RemoveSecHealthApp.ps1""' -Verb RunAs}"
46+
Powershell -noprofile -executionpolicy bypass -file "%~dp0\RemoveSecHealthApp.ps1"
4747

4848
CLS
4949
echo Unregister Windows Defender Security Components...
@@ -71,7 +71,7 @@ bcdedit /set hypervisorlaunchtype off
7171
CLS
7272
echo Removing Windows Security UWP App...
7373
:: Remove Windows Security App
74-
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""RemoveSecHealthApp.ps1""' -Verb RunAs}"
74+
Powershell -noprofile -executionpolicy bypass -file "%~dp0\RemoveSecHealthApp.ps1"
7575

7676
CLS
7777
echo Unregister Windows Defender Security Components...

0 commit comments

Comments
 (0)