Agent Procedure “GetActiveADUsers” is a small script I created that grabs the list of all “active” users in all OU’s and pipes that information along with their email addresses to a file. The script then grabs file and stores that file in the GetFile Area inside Kaseya. The script is also setup to alarm on change which will allow you to add a monitor for “getfile” that will email you or do something when the list of users changes.
Makes a great tool when you have large AD environments where there are a lot of OU’s and/or users are scattered all over the AD infrastructure. The text file created provides the users full name, email address and dept name if filled out.
Get script here -> Procedure GetActiveADUsers
This is a zip file with the procedure XML file inside. You will need to assign this script to only Active Directory Servers and schedule it for once a day. Then select the Monitor Tab and then Alerts and create a Alarm using the “Get Files” option in the “Select Alert Function ” drop down list. Have it email you if the alarm is struck.
That’s all there is to it!
Enjoy Cubert 😎