List of Enabled/not-expired accounts
Posted: Thu Sep 03, 2015 2:53 pm
I want to create a Task which emails account owners after n-days of not logging in.
Part of my script is this:
However this gets all users. I need to exclude the "not Enabled accounts" and the accounts which already are set expired. Otherwise accounts which already are disabled and expired will get an email, which they should not get.
Could someone show how I can get a list of Enabled accounts which are not marked Expired yet?
Part of my script is this:
Code: Select all
--Get user list from domain
local strUserlist = c_GetUserList("test-domain")
local userlist = Split(strUserlist,"\n")
Could someone show how I can get a list of Enabled accounts which are not marked Expired yet?