Here is the snippet we use to read the last login and and populate a database. One of these days I am going to clean some of this up so other people can use it. But for now - if you write a program to scan the registry you can do it pretty easily.
HKEY_LOCAL_MACHINE,"SOFTWARE\Ipswitch\IMail\Domains\"+ alltrim(domains.domain)+"\Users\"+alltrim(lcUser)+"\","LastLogin") If they are x number days out we then send a warning email to their alternative and local email (in case they use pop3) and then when we scan thru the next week, if they are still gone - if they are not using pop3 during the week - kill the account, if they are using pop3 give them one more chance and a very stern warning. After 30 days we delete the directories - this gives them the chance to reclaim their accounts. We have instituted a $5 reactivation fee for any email we close. No one seems to mind and it has become a fairly steady source of beer money. Chet From: "Shad Pulley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: [imail] Deleting old users... Date sent: Thu, 4 Apr 2002 10:44:31 -0700 Send reply to: [EMAIL PROTECTED] Organization: Humankind Systems, Inc. > Is there a way of going through and finding users that have not logged > in in say the last 6 months? Also, is there a command line utility to > delete orphaned accounts so I can schedule it once a week? > > Thanks, > > > > Shad Pulley > Senior Systems Engineer > Ikano Communications > (801) 415-8023 Ph & Fax > > _______________________________________________________ http://www.portalofevil.com ______________________________________________________________________ The HKSI-IMail Admin List is hosted by........ Humankind Systems, Inc. Questions, Comments or Complain like Hell.. mailto:[EMAIL PROTECTED] Message Archive... http://www.tallylist.com/archives/index.cfm/mlist.4 To Manage your Subscription......... http://humankindsystems.com/lists
