Gets the current UAC elevation level.
UacElevationLevel ()
none
(i) level
Return value is one of the following levels:
Level |
Meaning |
0 |
Error, or unsupported platform. |
1 |
Process is default (UAC is disabled, or standard user). |
2 |
Process is running elevated. |
3 |
Process is not running elevated (user is in Administrators group). |
level = UacElevationLevel( ) Message( "Current UAC elevation level", level ) Exit