Disables the option allowing a password to be stored using reversible encrypted text.
Const ADS_UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED = &H80Set objUser = GetObject _("LDAP://cn=myerken,ou=management,dc=fabrikam,dc=com")intUAC = objUser.Get("userAccountControl")If intUAC AND _ADS_UF_ENCRYPTED_TEXT_PASSWORD_ALLOWED ThenobjUser.Put "userAccountControl", intUAC XOR _ADS_UF_ENCRYPTED_TEXT_PASSWORD_ALLOWEDobjUser.SetInfoEnd If
This is a VB Script, this can be used by saving the file in .vbs file