how to determine if a shell is running as Administrator?

Achim Gratz Stromeko@nexgo.de
Thu Feb 5 14:28:00 GMT 2015


J. David Boyd writes:
> This doesn't seem to tell me if my shell has been started with 'Run As
> Administrator', it just tells me if my user is contained in the Administrator
> group.

No, you're not in that group unless you have actual administrator
privileges.
> I can start a cygwin shell, and start a cygwin shell with run as admin, and I
> get the same results from the above command.

Then you have UAC switched off or the place you're starting the cygwin
shell from already is elevated.
Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /