Tuesday, November 25, 2008

Changing a User Password

Changes the password for a user. Requires you to know the user's previous password.

Set objUser = GetObject _
    ("LDAP://cn=myerken,ou=management,dc=fabrikam,dc=com")
objUser.ChangePassword "i5A2sj*!", "jl3R86df"

This is a VB Script, this can be used by saving the file in .vbs file