Create mailbox by FIM 2010 R2 RRS feed

  • Question

  • Hi all,

    I'm trying to use FIM 2010 R2 to do provisioning mailbox on Exchange 2013

    According to some article on Internet I use that command in MVRule to create mailbox

    csentry = ExchangeUtils.CreateMailbox(ManagementAgent, component, nickname, mailboxMDB);

    But it doesn't work. I can see the HomeMDB has changed as the string mailboxMDB on the command, but the mailbox couldn't be created.

    Anyone please help me. Thanks !

    p/s: Is that possible if I use something simple like enable-mailbox in MVRule to create mailbox automatically after the user is created on AD?

    Sunday, April 12, 2015 6:05 PM


All replies

  • Hello,

    this is an very old approach you are trying in code.

    For Exchange 2010/2013 Provisioning you can simple flow the necessary attributes directly to AD




    (maybe: msDBUseDefault = True)

    After that configure Exchange provisioning from the MA configuration (extension tab)
    You must provide the URL of Exchange Remote PowerShell here:


    have also a look at this article:



    Peter Stapf - ExpertCircle GmbH - My blog: JustIDM.wordpress.com

    • Marked as answer by Kzb Monday, April 13, 2015 7:13 AM
    Sunday, April 12, 2015 8:01 PM
  • Thanks a lot, Peter. It works after mapping 3 attributes above in MVRule.

    I wonder that how about the case to disable/delete mailboxes. I see the link here:


    That link show that we have to use Powershell to do that kinds of task?

    Thanks !!!

    Monday, April 13, 2015 7:12 AM
  • Hello,

    yes thats right, OOB there is only the functionality to provision mailboxes.

    Disable/Delete Mailboxes need to be done with PowerShell.
    If you want to do more with Mailboxes than Provision, I would preferr to create a MA for that, for example with Sorens PowerShell MA

    But you could also to some PowerShell Activity in Portal for example.


    Peter Stapf - ExpertCircle GmbH - My blog: JustIDM.wordpress.com

    Monday, April 13, 2015 7:18 AM
  • Thanks again Peter,

    I did have a look that link about Powershell MA before but it looks a bit tough and new to me.

    Coding in Powershell MA seems that not the same as we often do for Exchange/AD Tasks.

    Do you have any example to complete something small with mailboxes or do you have any useful link for newbie to start with Powershell MA.

    Really appreciated.

    Monday, April 13, 2015 7:29 AM
  • Please see the Powershell script examples provided by Sören here:


    There is an example for Exchange.

    Monday, April 13, 2015 7:39 AM
  • Thanks all, I will try to read and understand that.
    Monday, April 13, 2015 7:56 AM