Jump to content

Help employees with a raise..


Go to solution Solved by JLogan3o13,

Recommended Posts

  • Moderators
  • Solution
Posted

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!

  • Moderators
Posted

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!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...