Hi,

I using the following code list all properties for a Windows NT 4.0 domain
user account:

'***************************************************************************
**********
Dim objUser As New DirectoryEntry("WinNT://testdom/testuser")

Dim propName As String
Dim value As Object

For Each propName In objUser.Properties.PropertyNames
        For Each value In objUser.Properties(propName)
                ListBox3.Items.Add("name= " & propName & "  value=" &
value.ToString)
      Next value
Next propName
'***************************************************************************
**********

Why doesn't this list the group membership?
How can I get it to list the group membership for an account?
If you know of any good books or example code it would be much appreciated?

Thank you
Simon Powell


----------------------------------------------------------------------
If you have received this e-mail in error or wish to read our e-mail
disclaimer statement and monitoring policy, please refer to
http://www.drkw.com/disc/email/ or contact the sender.
----------------------------------------------------------------------

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to