Win2k8/VIsta x64 上的 UAC - 本地“管理员”可以工作,但管理员组中的域帐户失败?

发布于 2024-08-17 09:58:51 字数 232 浏览 6 评论 0原文

我在启用 UAC 的 win2k8/Vista x64 上的一个应用程序中遇到了一个奇怪的问题。它是一个托管我们服务的 UI 并在登录用户的上下文中运行的进程。

当以“管理员”组成员的域用户身份登录时,由于 UAC 访问被拒绝,写入 HKLM 下的注册表会失败。

但是,当以本地“管理员”帐户(非域)登录时,写入注册表就会成功。

两个帐户都是管理员 - UAC 的域帐户和非域帐户之间有区别吗?什么给?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

罪歌 2024-08-24 09:58:51

谢谢...通过进一步阅读,它似乎也影响了 Vista:

“成为本地管理员组的一部分并不提供与本地管理员帐户相同的访问权限(这同样适用于 Windows Vista)。使用 Windows Server 2K8 中,管理员访问令牌在登录服务器时分为 2 个令牌,其中一个是管理员令牌,另一个是标准用户令牌。在登录过程中,将删除标识管理员的授权和访问控制组件。标准用户令牌用于启动桌面,因此所有以标准用户身份启动的应用程序。”

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."

千纸鹤 2024-08-24 09:58:51

不确定这是否适用,但通过按住 Shift+Control,您可以在管理模式下启动应用程序,即使您使用域管理员帐户登录也是如此。然后您可以作为本地管理员使用该应用程序

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文