Hi All,
I am trying to use NetGroupAdd() to create a group on my computer, but it
always return ERROR_ACCESS_DENIED. Do you guys know how to resolve the
problem? (Windows Xp sp3)
///code here
_GROUP_INFO_0 groupInfo;
DWORD param_err;
NET_API_STATUS sResult;
ZeroMemory(&groupInfo, sizeof(groupInfo));
groupInfo.grpi0_name = L"testGroup";
USES_CONVERSION;
sResult = NetGroupAdd(NULL, 0, (LPBYTE)&groupInfo, ¶m_err);
/// end code
Thanks
Su
Ben Voigt - 27 Feb 2007 15:16 GMT
> Hi All,
>
> I am trying to use NetGroupAdd() to create a group on my computer, but it
> always return ERROR_ACCESS_DENIED. Do you guys know how to resolve the
> problem? (Windows Xp sp3)
Perhaps you need NetLocalGroupAdd, because you're running on a workstation,
not a domain controller?
> ///code here
> _GROUP_INFO_0 groupInfo;
[quoted text clipped - 12 lines]
> Thanks
> Su
Willy Denoyette [MVP] - 27 Feb 2007 22:21 GMT
> Hi All,
>
[quoted text clipped - 17 lines]
> Thanks
> Su
Do you run with administrative privileges?
Willy.