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 remains:
- Which event must I trap ?
- How can I trap It ?
WMI can be used. Follow the URL:
and find "Handling WMI events"
Unfortunately, the library
is not found by .NET.
Do you have any idea ?
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 remains:
- Which event must I trap ?
- How can I trap It ?
WMI can be used. Follow the URL:
and find "Handling WMI events"
Unfortunately, the library
Code:
System.management
Do you have any idea ?