Monday, November 24, 2008

Resetting a Computer Account Password

Resets a computer account password in Active Directory.

Set objComputer = GetObject _
    ("LDAP://CN=atl-dc-01,CN=Computers,DC=Reskit,DC=COM")
objComputer.SetPassword "atl-dc-01$"

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