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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Active Directory Question - IADsUser

Status
Not open for further replies.

iamanson

Programmer
Aug 17, 2001
42
0
0
AU
I am trying to change password for users.
I found the following code:

Dim usr As IADsUser
Set usr = GetObject("WinNT://Microsoft/JSmith,user")
usr.ChangePassword "guesswhat?", "topsecret98"

but it cannot recongise IADsUser. What should I import or add in reference to make it work? Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top