How to get user rights AND privileges of a Windows User account

拈花ヽ惹草 提交于 2019-12-04 16:24:37

I believe the only way to do this is to use either LsaEnumerateAccountsWithUserRight or LsaEnumerateAccountRights to query the LSA policy.

Since rights need not be assigned directly (i.e., they could be assigned to a group, or to a security primitive such as Everyone or INTERACTIVE USERS) you'll need to enumerate the SIDs in the user's token and cross-reference this with the LSA policy.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!