I like to lock an account in a VB Script.
I use the
functions of VB6 to obtain the account object from a ADSI directory and then, I use the
property.
Here is my code:
But there can be a problem if the PDC require an authentication. How can I specify the credentials ?
And is it possible to use an algorithm for encryption (SSL...) ?
Thanks in advance
I use the
Code:
getObject
Code:
IsAccountLocked
Here is my code:
Code:
Set usr = GetObject("LDAP://<URL>")
usr.IsAccountLocked = TRUE
usr.SetInfo
Set usr = Nothing
But there can be a problem if the PDC require an authentication. How can I specify the credentials ?
And is it possible to use an algorithm for encryption (SSL...) ?
Thanks in advance