jdicerch Posted August 6, 2013 Share Posted August 6, 2013 (edited) Went about this a different way. Edited August 6, 2013 by jdicerch Link to comment Share on other sites More sharing options...
Moderators Solution JLogan3o13 Posted August 6, 2013 Moderators Solution Share Posted August 6, 2013 Are you on an Active Directory domain, or is this just a small workgroup? If you're in A.D. you can find out when the account was created, and use that for your calculations (would also save you from having to run it on each machine). "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
jdicerch Posted August 6, 2013 Author Share Posted August 6, 2013 Small workgroup, thanks! Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted August 6, 2013 Moderators Share Posted August 6, 2013 For an A.D. domain, I use something like this #include <AD.au3> _AD_Open() Global $aProperties[1][2] $aProperties = _AD_GetObjectProperties(@UserName) For $i = 1 To $aProperties[0][0] If $aProperties[$i][0] = "whenCreated" Then MsgBox(0, "", $aProperties[$i][1]) Next For a small workgroup, I would still run it apart from the local machines. Maybe a spreadsheet with each user name, their hire date, and date of last raise. Then you could use _DateDiff (see the help file) to cycle through the users and find out which have not had a raise in x number of months. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now