How can I know if a user is a member of the Administrator's group if the only information that I have is the user name (and domain if relevant)?
I do know how to get this information for the current user. However, in my case, I need to get this information for a user which is not logged in yet (I'm working on Credential Provider). Therefore, I can only use the user name & domain.
This issue is relevant only to Windows machines.
I'm working with C#/C++.
I am aware of C# WindowsPrincipal class as shown in: WindowsPrincipal
I am also aware of IsUserAnAdmin() Windows API. However, I cannot use these methods because I'm dealing with user which is not logged in yet (my code is executed before the user actually enters the Windows machine)