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