How to connect to servers and get list of local group and membership RRS feed

  • Question

  • User-212890919 posted

    I have an issue of getting lists of all local groups and all there members
    on diffrent servers.

    I want to connect (bind) to the servers and get collectionsa of objects, just like you do in Active Directory with DirectoryEntry and directorySearcher.

    What is the preffered way and technique for
    this? Is Directory Services of any help?

    Im not in for using any VB script here, Im using C# and it would make my life easier if someone could
    hint me for some links of code examples in this matter.



    Monday, July 3, 2006 3:25 AM

All replies

  • User1354132231 posted
    You should be able to use the WinNT provider for this and bind to the server directly.  You won't be able to search, but you should be able to iterate through all the objects looking for groups.

    If you see script examples that use the WinNT provider, you can translate them to .NET.
    Wednesday, July 5, 2006 9:55 AM