Skip to content

Commit

Permalink
fix(enable search indexing): RunAsTI perms
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Jul 15, 2024
1 parent e16f2d8 commit 2e5473d
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@
setlocal EnableDelayedExpansion
if "%~1"=="/silent" goto main

set "___args="%~f0" %*"
fltmc > nul 2>&1 || (
echo Administrator privileges are required.
powershell -c "Start-Process -Verb RunAs -FilePath 'cmd' -ArgumentList """/c $env:___args"""" 2> nul || (
echo You must run this script as admin.
if "%*"=="" pause
exit /b 1
)
:: TI required for RespectPowerModes
whoami /user | find /i "S-1-5-18" > nul 2>&1 || (
call RunAsTI.cmd "%~f0" %*
exit /b
)

Expand Down

0 comments on commit 2e5473d

Please sign in to comment.