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!
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!