User Properties

  • Thread starter Thread starter Work
  • Start date Start date
W

Work

Is there a place I can find all the user Properties that can be set in
Windows 2000 AD.
I am trying to write a vb.net program to add in users using
directoryservices and I need
to set all the properties for each user.

Thanks for any help.
Linda
 
Is there a place I can find all the user Properties that can be set in
Windows 2000 AD.
I am trying to write a vb.net program to add in users using
directoryservices and I need
to set all the properties for each user.

Thanks for any help.
Linda

They're all defined in the schema and can be viewed using the Schema
managment console (schmmgmt.msc). The following is a short little
VBscript that will display the attribute names (change 'user' to some
other class to get it's available attributes):

Set objSchema = GetObject("LDAP://" & _
GetObject("LDAP://RootDSE").dnsHostName & _
"/schema/user")
WScript.Echo "Mandatory (Must-Contain) attributes:"
For Each Attribute in objSchema.MandatoryProperties
WScript.Echo Attribute
Next
Wscript.Echo
WScript.Echo VbCrLf & "Optional (May-Contain) attributes:"
For Each Attribute in objSchema.OptionalProperties
WScript.Echo Attribute
Next



Wayne
 
Back
Top