Last post May 09, 2005 02:39 PM by dunnry
May 05, 2005 02:02 PM|coolislandsurf|LINK
I am using ADSI values to set userAccountControl flags like disabling an account. Do you guys know how to set the account to expire at a specified date using vb.net?
May 06, 2005 01:17 PMfirstname.lastname@example.org|LINK
For a few things you will find that the userAccountsControl attribute is some what useless in regards to date/time.
The userAccountControl is not updated properly to reflect things like lockout for instance. Instead you use the msDS-User-Accounts-Control-Computed, or the WinNT provider IsAccountLocked. It may not be related, but an FYI for the future.
I haven't actually used it, but I believe what you want is accountExpires. This appears to be a LargeInteger attribute so you will probably need to search on the forms or deja.com to for the formatting.
May 06, 2005 03:09 PM|coolislandsurf|LINK
It turns out that at my job we are no longer going to use account expires but another business process that would include disabling user account and deleting the account from another application at some other specified time. Thanks for the update though,
i appreciate it.
May 09, 2005 02:39 PM|dunnry|LINK