Create mailbox by FIM 2010 R2

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?

April 12th, 2015 2:07pm

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

Free Windows Admin Tool Kit Click here and download it now
April 12th, 2015 4:03pm

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 !!!

April 13th, 2015 3:14am

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

Free Windows Admin Tool Kit Click here and download it now
April 13th, 2015 3:20am

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.

April 13th, 2015 3:31am

Please see the Powershell script examples provided by Sren here:

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

There is an example for Exchange.


Free Windows Admin Tool Kit Click here and download it now
April 13th, 2015 3:41am

Thanks all, I will try to read and understand that.
April 13th, 2015 3:57am

Please see the Powershell script examples provided by Sren here:

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

There is an example for Exchange.


Free Windows Admin Tool Kit Click here and download it now
April 13th, 2015 7:39am

Please see the Powershell script examples provided by Sren here:

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

There is an example for Exchange.


April 13th, 2015 7:39am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics