Imanami Community

Join or create discussions about common issues and solutions.
Welcome to Imanami Community Sign in | Join | Help
in Search

Disabling accounts without Logon

Last post 06-17-2008, 11:09 AM by Usman Zaheer. 1 replies.
Sort Posts: Previous Next
  •  02-19-2008, 8:00 AM 499

    Disabling accounts without Logon

    I was checking out the post under knowledge base about disabling accounts Source/Destination both being AD.  We are trying to disable accounts with no logon for 3 months an was just wondering if anyone has an example.  I checked out the website 
    http://www.microsoft.com/technet/scriptcenter/topics/win2003/lastlogon.mspx
     but was not able to get the source query to work successfully


    SELECT * FROM 'LDAP://mydomain' WHERE objectCategory='person' AND objectclass = 'user' AND lastLogonTimeStamp <= DateTimeSixMonthsAgo

  •  06-17-2008, 11:09 AM 644 in reply to 499

    Re: Disabling accounts without Logon

    Do you use SmartR? You can use SmartR to generate reports of accounts according to their last used time.
View as RSS news feed in XML
Powered by Community Server (Personal Edition), by Telligent Systems