andDaviD
andDaviD

Reputation: 565

Function that help to remove user account

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

Answers (2)

Frédéric Hamidi
Frédéric Hamidi

Reputation: 262939

You seem to be looking for NetLocalGroupDelMembers(), which resides in netapi32.dll.

Upvotes: 2

Sergey Podobry
Sergey Podobry

Reputation: 7189

Yes, it is NetGroupDelUser from Netapi32.dll:

NET_API_STATUS NetGroupDelUser(
  __in  LPCWSTR servername,
  __in  LPCWSTR GroupName,
  __in  LPCWSTR Username
);

Upvotes: 2

Related Questions