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 02-19-2008, 8:00 AM by Asmith. 0 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

View as RSS news feed in XML
Powered by Community Server (Personal Edition), by Telligent Systems