make sure that we dont directly start as admin
This commit is contained in:
parent
76cf4f8543
commit
76887a179f
1 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,7 @@ fltmc >NUL 2>&1 || (
|
||||||
PowerShell -Command "Stop-Process -Name Spotify -ErrorAction SilentlyContinue"
|
PowerShell -Command "Stop-Process -Name Spotify -ErrorAction SilentlyContinue"
|
||||||
|
|
||||||
:: Start as administrator
|
:: Start as administrator
|
||||||
PowerShell Start -Verb RunAs '%0' 2>NUL || (
|
PowerShell Start -Verb RunAs "%0 noskipadmin" 2>NUL || (
|
||||||
EXIT 1
|
EXIT 1
|
||||||
)
|
)
|
||||||
EXIT 0
|
EXIT 0
|
||||||
|
@ -44,6 +44,8 @@ fltmc >NUL 2>&1 || (
|
||||||
|
|
||||||
:: => ADMIN RIGHTS <=
|
:: => ADMIN RIGHTS <=
|
||||||
|
|
||||||
|
IF NOT "%1"=="noskipadmin" EXIT 0
|
||||||
|
|
||||||
:: === Registery modifications ==
|
:: === Registery modifications ==
|
||||||
ECHO Registery entries...
|
ECHO Registery entries...
|
||||||
:: Right click of Windows 10
|
:: Right click of Windows 10
|
||||||
|
|
Loading…
Reference in a new issue