Skip to content

Commit

Permalink
feat: move UAC to services folder
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Jun 12, 2024
1 parent c92d599 commit 76f1353
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@echo off

if /i "%~1" == "/uacSettings" goto uacSettings
if /i "%~1" == "/silent" goto main

set "___args="%~f0" %*"
fltmc > nul 2>&1 || (
Expand All @@ -13,6 +14,7 @@ fltmc > nul 2>&1 || (
exit /b
)

:main
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "ConsentPromptBehaviorAdmin" /t REG_DWORD /d "5" /f > nul
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableInstallerDetection" /t REG_DWORD /d "1" /f > nul
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t REG_DWORD /d "1" /f > nul
Expand All @@ -29,6 +31,8 @@ reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Executi

call setSvc.cmd luafv 2

if /i "%~1" == "/silent" exit /b

echo]
echo Finished, please reboot your device for changes to apply.
pause
Expand Down

0 comments on commit 76f1353

Please sign in to comment.