If I run 'net group /domain' on the Windows command line, I get a list of "global groups" for the current domain server. I want to get the same list from my .NET code.
Googling around I find thousands of "How to get the groups a user belongs to", "How to get the users that belong to a group", etc. I just want the list of all global groups; not those associated with a particular user. Can someone show me the code for this, or reference from which that code could be derived?
System.DirectoryServices
namespace – L.B