Email after PST Import done via PowerShell

Hi.

In Exchange 2013 when importing PST file, the EAC allow us to Send email to the mailbox below when the .pst file has been exported. (Note, there is typo here because its supposed to say imported).

Well, Im trying to archived the same thing via PowerShell but the New-MailboxImportRequest doesnt allow me send an email when the request its done.

Does anyone know how to send a notification email when the mailbox import request start and its finished?

Thank you.

June 21st, 2013 5:13pm

You would need to use a cmdlet extension agent and use the OnComplete API see  http://technet.microsoft.com/en-us/library/dd297951(v=exchg.141).aspx and there's a sample OnComplete agent on http://eightwone.com/2011/08/24/automatic-archive-provisioning-with-cmdlet-extension-agents/

Cheers
Glen

Free Windows Admin Tool Kit Click here and download it now
June 24th, 2013 10:21am

Hi.

Sorry for the delay in answer. I was in vacation last week. Your links are very interesting but required a lot of work, particularly in making sure the .xml file is copy on all the Exchange servers.

I would like to know how the EAC does it. To my knowledge, EAC is 100% PowerShell based so I assume it can PowerShell can do it, no?

Thank you.

July 2nd, 2013 12:13pm

EAC is a private application so how it does things isn't documented anywhere (and they no longer let you view the cmdlets they run) and there are no public EAC API's for you to call (this maybe a private hook). It uses Powershell and the EMS cmdlets under the covers but as you know there are no public parameters in the New-MailboxImportRequest cmdlet that let you send email notfications.

Cheers
Glen

Free Windows Admin Tool Kit Click here and download it now
July 3rd, 2013 3:52am

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

Other recent topics Other recent topics