Skip to content

Commit

Permalink
Replace disable/enable files with toggle + fixed typo (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
99N9ne99 authored Apr 25, 2023
1 parent 6161c00 commit 2a5eeb2
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ echo However, it is slower and more annoying than the legacy Windows 7 boot menu
echo]
echo What would you like to do?
echo [1] Disable the new boot menu (default)
echo [2] Enable the boot logo
echo [2] Enable the new boot menu
echo]
choice /c 12 /n /m "Type 1 or 2: "
if !errorlevel! == 1 (
Expand All @@ -35,4 +35,4 @@ goto finish
:finish
echo Finished, please reboot your device for changes to apply.
pause
exit /b
exit /b

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
@echo off
setlocal EnableDelayedExpansion

whoami /user | find /i "S-1-5-18" > nul 2>&1 || (
call RunAsTI.cmd "%~f0" "%*"
exit /b
)

echo Disabling Event log will break some features:
echo - CapFrameX
echo - Network menu/icon
echo If you experience random issues, please enable Event Log again.
echo]
echo [1] Disable Event log
echo [2] Enable Event log (default)
echo]
choice /c 12 /n /m "Type 1 or 2: "
if !errorlevel! == 1 (
goto disable
) else (
goto enable
)

:disable
echo]
call setSvc.cmd EventLog 4 > nul 2>&1
goto finish

:enable
echo]
call setSvc.cmd EventLog 2 > nul 2>&1
goto finish

:finish
echo Finished, please reboot your device for changes to apply.
pause
exit /b
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
@echo off
setlocal EnableDelayedExpansion

whoami /user | find /i "S-1-5-18" > nul 2>&1 || (
call RunAsTI.cmd "%~f0" "%*"
exit /b
)

echo Disabling Task Scheduler will break some features:
echo - MSI Afterburner startup/updates
echo - UWP typing (e.g. Search bar)
echo If you experience random issues, please enable Task Scheduler again.
echo]
echo [1] Disable Task Scheduler
echo [2] Enable Task Scheduler (default)
echo]
choice /c 12 /n /m "Type 1 or 2: "
if !errorlevel! == 1 (
goto disable
) else (
goto enable
)

:disable
echo]
call setSvc.cmd Schedule 4 > nul 2>&1
goto finish

:enable
echo]
call setSvc.cmd Schedule 2 > nul 2>&1
goto finish

:finish
echo Finished, please reboot your device for changes to apply.
pause
exit /b

0 comments on commit 2a5eeb2

Please sign in to comment.