I try to delete a monovalued attribute with adsi and VBS. Unfortunaly, I have only found the PutEx method but it only works wth multivalued attribute.
Do you have any ideas ?
Thanks in advance
Thanks for the answer
I have thought about this solution but the company has more than 5000 employees !!... and the event must be trapped 5 minutes maximum after the user account locks out
Hi,
I would like to execute an action each time a user account is locked out in Active Directory. I think that it is possible by trapping an event (perhaps a "userAccountLockedOutEvent") but I cannot find the right event.
After browsing the web during hours, two questions...
OK, it works if no authentication is needed.
But my problem is to authenticate against the PDC. If I try your code, I have an automation error when the getObject function is executed.
Matthieu
I like to lock an account in a VB Script.
I use the getObject functions of VB6 to obtain the account object from a ADSI directory and then, I use the IsAccountLocked property.
Here is my code:
Set usr = GetObject("LDAP://<URL>")
usr.IsAccountLocked = TRUE
usr.SetInfo
Set usr =...
Yes !!
Finaly, I have found a solution
Dim propList As IADsPropertyList
Dim propEntry As IADsPropertyEntry
Dim propVal As IADsPropertyValue
Dim attributValue As String
Set propList = GetObject(<adsPath>)
propList.GetInfo
Set propEntry =...
Hello,
I have made a user form with several listbox and I try to access to the text selected in each listbox.
First, I create the following array :
TAB_ouiNon(0) = "oui"
TAB_ouiNon(1) = "non"
TAB_Format(0) = "A"...
Hello,
Is it possible to use ADSI component with openLdap and read non standard attributes ?
In fact, the rootDSE provides only the standard schema. Can we force it to provide all the schemas ?
Thank you in advance
Matthieu
A french developper
In fact, I try to know if there is a description of the cells in an Excel worksheet. This name is define via the Item in the 'Name' Item of the 'Edit' Menu
Hello,
In Visual Basic, is it possible to know if a cells has a name ?
There is the object "Name" for a range but an error occurs when we try to access to it when it does not exist.
thanks for replying
Matthieu
French developper
I can't see the Item "Open With". It can be seen only if I click on a JPG File in the explorer. IE doesn't care the application I Choose even if the option "Open This application next time" is choosen.
There are no queries opened in this connection. The program just opens and closes it, that's all. Moreover, no exception are detected with try/catch or with the control of the HRESULT code returned by Close ; I use the code:
hr = CN_seat->close;
if ( FAILED(hr) ){
return 2;
}
and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.