Sign in to follow this  
Followers 0
jdicerch

Help employees with a raise..

4 posts in this topic

#1 ·  Posted (edited)

Went about this a different way.

Edited by jdicerch

Share this post


Link to post
Share on other sites



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).


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Small workgroup, thanks!

Share this post


Link to post
Share on other sites

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.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0