English 中文(简体)
UAC on Win2k8/VIsta x64 - local "Administrator" works but domain account in Administrators group fails?
原标题:

I have come across a strange problem in one of our applications on win2k8/Vista x64 with UAC enabled. It is a process which hosts the UI for our service and runs in the context of the logged on user.

When logged in as a domain user who is a member of the "Administrators" group, writing to the registry under HKLM fails due to UAC with access denied.

But when logged in as the local "Administrator" account (non-domain) then writing to the registry succeeds.

Both accounts are adminstrators - is there a distinction between domain and non-domain accounts with UAC? What gives?

最佳回答

Thanks... from further reading it seems that it does affect vista as well:

"Being part of the Local Administrator Group doesn t provide the same access as the Local Administrator Account (the same also applies to Windows Vista). With Windows Server 2K8, the administrator access token is split into 2 tokens when logged into the server. One of these is an administrator token and the other a standard user token. During the logon process, authorization and access control components that identify an administrator are removed, leaving a standard user token. The standard user token is used to start the desktop and, therefore, all applications that start run as a standard user."

问题回答

not sure if this applies but by holding shift+control you can start applications in admin mode, even if youre logged in with a domain admin account. you can then use the application as a local admin





相关问题
How to request Administrator access inside a batch file

I am trying to write a batch file for my users to run from their Vista machines with UAC. The file is re-writing their hosts file, so it needs to be run with Administrator permissions. I need to be ...

Copy to Program Files under Windows Vista/7

I have written a wizard in C++ which installs some files to the program files folder under windows. As I understand, I need Admin rights to write to program files under Vista/7. So my question is: Is ...

Run .NET application as administrator

Since Vista & windows 7 came out some of my .NET application has started throwing security exceptions. I ve noticed that some applications (i.e. my antivirus, control panel) have a small shield ...

RUNASADMIN in Registry doesnt seem to work in Windows 7

For a while now the installer for my program has used the below code to make my app run with administer privileges. But it seems to have no effect under Windows 7. In Vista it worked beautifully. If I ...

热门标签