I have an ASP.NET Website project, and I need to list all users and their groups on my Windows system. I set the identity impersonation to true and provided the administrator username and password in the web.config file. Where to begin?
Thanks in advance.
Update:
I have the following code at the moment -
var machine = new DirectoryEntry("WinNT://<IP ADDRESS>"); foreach (DirectoryEntry child in machine.Children) {
When I debug, I see a list of users in machine.Children. How to find the group (s) to which this user belongs?
source share