NetUserGetLocalGroups无法返回本地管理组成员的域组(范围:域本地)。 [英] NetUserGetLocalGroups fails to return domain group (scope: domain local) which is a member of the local admin group.
问题描述
我们有以下场景:
一个名为Group A的域组;(范围:域本地)。
A组添加在位于同一域中的计算机的本地管理员组。我们使用NetUserGetLocalGroup
来获取所有本地组,但找不到组A.
如果我们更改组范围来自"domain local"的组A到"全球"再次运行相同的函数
,NetUserGetLocalGroup可以将组A识别为本地组。
上述场景是否不受支持?是否有其他方法可以在本地组下获取嵌套
的域本地范围域组?
推荐答案
感谢您在此处发布。
>> NetUserGetLocalGroups失败返回域组(范围:域本地),它是本地管理员组的成员
>>NetUserGetLocalGroups fails to return domain group (scope: domain local) which is a member of the local admin group
请提供更多信息关于如何调用
NetUserGetLocalGroups方法。
您的用户名参数是否为DomainName \UserName和level设置为0以获取包含本地组成员信息的LOCALGROUP_USERS_INFO_0数组?
Is your username parameter formed as DomainName\UserName and level set to 0 to get an array of LOCALGROUP_USERS_INFO_0 which contains local group member information?
请参阅本文档底部的示例。
Refer to the sample on the bottom of this document.
最好的问候,
Baron Bi
这篇关于NetUserGetLocalGroups无法返回本地管理组成员的域组(范围:域本地)。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!