-
-
Notifications
You must be signed in to change notification settings - Fork 540
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace disable/enable files with toggle + fixed typo (#711)
- Loading branch information
99N9ne99
authored
Apr 25, 2023
1 parent
6161c00
commit 2a5eeb2
Showing
7 changed files
with
76 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
...onfiguration/2. Advanced Configuration/Event Log and Task Scheduler/Disable Event Log.cmd
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
...uration/2. Advanced Configuration/Event Log and Task Scheduler/Disable Task Scheduler.cmd
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...ion/2. Advanced Configuration/Event Log and Task Scheduler/Enable Event Log (default).cmd
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
.... Advanced Configuration/Event Log and Task Scheduler/Enable Task Scheduler (default).cmd
This file was deleted.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
...las/3. Configuration/2. Advanced Configuration/Event Log and Task Scheduler/Event Log.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
37 changes: 37 additions & 0 deletions
37
.... Configuration/2. Advanced Configuration/Event Log and Task Scheduler/Task Scheduler.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |