New
#1
UAC bug with runas from command line?
Hi Folks,
I am experiencing what I believe is a bug with UAC in Windows 7.
I would like to see if anyone can recreate this issue and tell me if it is a bug or is working as expected.
To recreate the issue:
1. Confirm the following local security policy setting is Enabled. Local Policies -> Security Options -> User Account Control: Run all administrators in admin approval mode.
2. Launch a command prompt and open a new elevated command prompt with this command: runas /user:<domain>\<user> cmd.exe
3. Once the new window opens, navigate to your C: directory via My Computer. Once at C: attempt to create a new text document by right click and selecting new. If my suspicion is correct, you will have lost nearly all access to the C: directory.
4. To fix this permission issue, disable the setting mentioned in step 1. Reboot will be required.
Is this working as intended? Is this a bug? I have not come across any thread or document that discusses this issue being caused by the runas command.
I assume the issue is with UAC's admin approval mode, as the disabling admin approval mode appears to resolve the issue.