how to determine if a shell is running as Administrator?

Achim Gratz
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

> 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.

+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf Q+, Q and microQ:

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list