Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADSI Question

Status
Not open for further replies.

FRANDAZZO

Programmer
Nov 29, 2000
60
US
Hello All,
Question - how do you update a users fullname and description properties using adsi. I can update the pasword but not the others.

Thanks,
Frandazzo
 



Frandazzo,

Set oUser = GetObject("WinNT://" & strDomain & "/" & strUser)

' Setting the Full Name of the User
oUser.FullName="Joe Doe"
oUser.Description="User description here."
oUser.SetInfo

Cheers,
fengshui1998
 
fengshui1998,

After I get the user . And I go to update the accout I get "object doesen't support this property or method". Now I know when adding a user, the fullname and description properties are valid.

'this is fine.
Set oUser = GetObject("WinNT://" & strDomain & "/" & strUser)

'This is where I get the error(s)
oUser.FullName="Joe Doe"
oUser.Description="User description here."
oUser.SetInfo

Is there some sort of update object that has to get called??

Thanks,

Frandazzo

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top