I would like to determine if the current Matlab session is running with elevated privileges (i.e. the user started it using "Run as administrator") under Windows. Ideally, the solution will work on XP and Windows 7, but I'm glad, if necessary, two solutions.
This answer assumes that I can get the information I need through the external .Net interface from Matlab (at least for Vista and later), but I wonder if there is a more βnativeβ Matlab solution.
windows matlab uac
Barry wark
source share