created aftercreate rule using beta collection. this rule aims to do the following after creation of account in AD.
Generate initial password
enable remote-mailbox
send notification to manager
these functions will be under the client script that it will call.
rule is not working, not writing logs in the path.
btw. manually tested the client script using an existing account in AD that has disabled remote mailbox, all 3 functions are working fine. so the only problem now is the aftercreate rule itself, not triggering after account creation.
please check if the rule is correct. or am i missing something in the configuration.
It doesn’t look like you’ve exactly followed the template described here:
I wouldn’t change much in that template other than the $logFile and $command. The rest of the logic should exist in the script defined by the $command variable that resides on the IQService host.
Hi @almallete as @MattUribe says keep the $logFile and $command. Or you can update the path of $logFile and $command in the below code and try to attach it to the AD source and test it again.