email this FAQ to a colleague Q: How do I set a user's account expiration date using ADSI?
A: Here is some code that uses ADSI to change a user's expiration date. Set oUser = GetObject("WinNT://machinename/username") oUser.AccountExpirationDate = Now() oUser.SetInfo Set oUser = Nothing
Set oUser = GetObject("WinNT://machinename/username") oUser.AccountExpirationDate = Now() oUser.SetInfo Set oUser = Nothing
- Wayne Berry