err.number = -2147016651
And it
does not reset to 0
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gil Kirkpatrick
Sent: Thursday, March 27, 2003 4:19 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [ActiveDir] Reset BadPwdCount property for usersHi John,I would have thought that it was read-only, but I didn't see anything in the schema or the SD that would make it read-only. What kind of errors are you getting?-gil-----Original Message-----
From: John F. Hann [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 3:02 PM
To: ActiveDir List
Subject: [ActiveDir] Reset BadPwdCount property for usersIs the BadPwdCount property read only? I have tried to reset this with the following script and get errorsSet Ulist = GetObject("LDAP://ou=My Users,DC=My,DC=domain,DC=com")
For Each User In Ulist
If user.badpwdcount > 5 then
WScript.Echo(user.fullname & " " & user.badpwdcount)
user.badpwdcount = 0
user.setinfo
End if
NextJohn HannBancorpSouth662.678.7179
