如何在 Windows 7 中向用户/角色授予权限?

发布于 2024-12-11 23:15:31 字数 455 浏览 3 评论 0原文

如何向特定用户授予特定特权(而非权限)?我很困惑,因为似乎有“权限”和“特权”,我需要能够授予 SE_SYSTEMTIME_NAME 特权,以便我编写的一个软件可以修改 Windows 7 中的系统时钟。显然我需要授予此特权所以我可以调用 SetSystemTime 定义:

 Declare Function SetSystemTime Lib "Kernel32.dll" (ByRef lpSystemTime As SYSTEMTIME) As UInt32

但是,我不清楚如何授予此权限。我确实拥有管理员权限,所以我应该能够启用此权限。我一直在疯狂地试图解决这个问题。任何有关如何在 Windows 7 中获取权限的帮助将不胜感激。

简而言之,我想知道如何使用 Windows 7 用户界面或系统实用程序向我的帐户授予 SE_SYSTEMTIME_NAME 权限。如何获得此权限以便我可以设置系统时间?

How do I grant specific privileges (not permissions) to a specific user? I'm confused because it seems there are "permissions" and "privileges" and I need to be able to grant the SE_SYSTEMTIME_NAME privilege so that a piece of software I wrote can modify the system clock in Windows 7. Apparently I need this privilege granted so I can make the the call to SetSystemTime defined by:

 Declare Function SetSystemTime Lib "Kernel32.dll" (ByRef lpSystemTime As SYSTEMTIME) As UInt32

However, I am unclear as to how to grant this privilege. I do have Administrator permissions so I should be able to enable this privilege. I've been going crazy trying to figure this out. Any help on how to st privileges within Windows 7 would be greatly appreciated.

In short I want to know how to use the Windows 7 user interface or system utility to grant the SE_SYSTEMTIME_NAME privilege to my account. How do I get this privilege granted so I can set the system time?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文