I am looking for a way to do something in .Net 2003 that I was able to do in vbscript. I need to be able to list AD groups and users. This was fairly simple in vbscript but I am having difficulty doing this in .Net.
In vbscript for groups:
I would do the same thing for users except change the filter to "User". How do I do this in .Net 2003?
Thanks everyone
In vbscript for groups:
VB.NET:
colgroups = GetObject(WinNT://mydomain,domain")
colgroups.Filter = Array("group")
For Each objgroup In colgroups
name = objgroup.Name
descript = objgroup.Description
Next
Thanks everyone