Skip to content

Is there a way to test if elevated when using gsudo? #314

Closed Answered by gerardog
eggbean asked this question in Q&A
Discussion options

You must be logged in to vote

You got it!

You can also check out these:

with gsudo:

gsudo status IsElevated --no-output 
if errorlevel 0 echo Current Process Is Not Elevated
if errorlevel 1 echo Current Process Is Elevated

without gsudo:

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by eggbean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants