Reputation: 565
Are there any functions in kernel32.dll, user32.dll, advapi32.dll or in some other .dll that can remove a local user account from the Administrators group?
Upvotes: 1
Views: 213
Reputation: 262939
You seem to be looking for NetLocalGroupDelMembers(), which resides in netapi32.dll
.
Upvotes: 2
Reputation: 7189
Yes, it is NetGroupDelUser from Netapi32.dll:
NET_API_STATUS NetGroupDelUser(
__in LPCWSTR servername,
__in LPCWSTR GroupName,
__in LPCWSTR Username
);
Upvotes: 2