locked
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

Answers

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

    mailNickname

    msExchHomeServerName

    homeMDB

    (maybe: msDBUseDefault = True)

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

    http://cas-server/PowerShell

    have also a look at this article:

    http://www.ramblingtech.com/provisioning-exchange-20102013-accounts-using-fim-2010/

    /Peter


    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:

    https://social.technet.microsoft.com/Forums/en-US/e7e69e16-7c14-45d4-ab0c-add970a9c190/disabling-deleting-exchange-mailbox-using-fim-2010?forum=ilm2

    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


    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:

    http://blog.goverco.com/p/psmadownloads.html

    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