Create Windows_Elevated_Execution

An extension to start executeables as admin.
pull/177/head
0iphor13 2022-11-14 11:23:39 +01:00 committed by GitHub
parent d76db5bf8a
commit cb39005f2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,33 @@
EXTENSION Windows_Elevated_Execution
REM VERSION 1.0
REM Executes the desired program with elevated privileges
REM Conformation via keyboard shortcut for (currently) english, german and spanish layouts
REM additional extensions
REM CONFIGURATION:
REM Used to wait for the UAC prompt to react to input
DEFINE INPUT_WAIT 2000
REM Shortcut for YES across multiple languages
DEFINE ENGLISH_ACCEPT ALT y
DEFINE GERMAN_ACCEPT ALT j
DEFINE SPAIN_ACCEPT ALT s
FUNCTION Elevated_Execution()
DELAY INPUT_WAIT
CTRL-SHIFT ENTER
DELAY INPUT_WAIT
REM Change below for appropriate language
GERMAN_ACCEPT
DELAY INPUT_WAIT
END_FUNCTION
REM EXAMPLE USAGE AFTER EXTENSION
REM DELAY 2000
REM GUI r
REM DELAY 2000
REM STRING powershell
REM Elevated_Execution()
REM STRINGLN whoami /priv
END_EXTENSION