UAC level is not the same between admin and user sessions !
Posted on 2014-09-05
we're meeting a funny situation ... on our Windows 7 workstations :
when i set level 0 on admin user,
the level in the user' session is 0 !
...when i set level 1 on admin user,
the level in the user' session is 2 !
when i set level 2 on admin user,
the level in the user' session is 3 !
We discovered that it can be caused by a little script that we've built, which set the three values in registry
-- script is executed from admin session --
reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f
reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v ConsentPromptBehaviorAdmin /t REG_DWORD /d 5 /f
reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v PromptOnSecureDesktop /t REG_DWORD /d 0 /f
But it's very strange to never go back to a stable situation, and avoiding a shift between the two sessions ...
Do you know how to fix this problem ?