Posted on Friday April 16, 2010

Listing Windows users and groups in C#

This example is borrowed from a newsgroup post, apologies to whoever should take the credit but I lost the original url. It’s a basic console application that prints out access lists and groups lists using WMI for the windows directory.

If you’d rather use the System.DirectoryServices namespace then there is a good example in the roadkill source.