Hello,
It is impossible to run a Scheduled Task more often than once an hour. This feature is in our TODO list. Most probably, it will be implemented in Adaxes version 2013.1 that is planned for late January.
As for checking if an account is locked, there is no built-in condition to check if an account is locked, but you can use the If PowerShell script returns true condition for this purpose.
To add such a condition to your Scheduled Task:
-
Right-click the set of actions and conditions of your Scheduled Task.
-
Click Add Condition....
-
Add the If PowerShell script returns true condition and paste the following script:
$Context.ConditionIsMet = $Context.TargetObject.IsAccountLocked
The script uses the IsAccountLocked property of the user object. As an option, you can use it in your own script, for example:
$isAccountLocked = $Context.TargetObject.IsAccountLocked
if ($isAccountLocked)
{
# TODO: add some code here.
}