LS,
I have enabled the Exchange 2010 scripting agent.
I updated the scripting agent to execute when a new-mailbox command is given to disable the POP for the new mailbox.
When I create a new mailbox the scripts is running (oncomplete) but says no object found.(so it doesn't see the mailbox enabled user (user was already in AD).
In our environment we only have 3 domain controllers and all are in one AD site.
Is it possible to say the scripting agent to wait couple ofminutes before running ?
The error I get:
The cmdlet extensionagent with the index 5 has thrown an exception in OnComplete. The Exception is: Microsoft.exchange.provisioning.provisioningexception. Scriptingagent exception thrown while invoking sciptlet for OnComplete API. The operation cound't be performed
because object 'objectname' couldn't be found . After tja a message that ms.exchange.provisionin.provisioninglayer.oncomplete (task task, Boolean succeede.)