winapi - Windows 8.1: "IsUserAnAdmin" returns false even though UAC is off and the user a member of "administrators" -


on windows 8.1 system uac turned off , current user member of local administrators (not local "administrator" account) calling "isuseranadmin" returns "false". in windows 7, same settings, calling "isuseranadmin" returns "true". msdn article states support function ended windows vista / server 2008, not work longer in windows 8 / 8.1?

as turns out on windows 8.1 pc setting uac "never notify" not enough give full unrestricted administrative rights user account when logs on. if 1 sets uac "never notify", execute program full administrative rights still necessary use "run administrator" menu entry start program. "never notify", wording suggest, in situation not display uac confirmation dialog.

on windows 8 / server 2012, give full administrative rights account right after logs on, uac has turned off , following local policy needs disabled in "local group policy editor" (gpedit.msc) or via group policy on domain level: computer configuration / windows settings / security settings / local policies / security options / user account control: run administrators in admin approval mode. once change has happened calling "isuseranadmin" returns "true".

this change compared windows 7. in windows 7, when 1 sets uac level "never notify", above mentioned policy automatically gets set "disabled".

credit goes michi dönselmann of "nwc services" pointing me in right direction article: "uac auf windows server 2012 deaktivieren".


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -