如何在 Windows 7 中向用户/角色授予权限?
如何向特定用户授予特定特权(而非权限)?我很困惑,因为似乎有“权限”和“特权”,我需要能够授予 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论