I need to export the mailbox (archive) for pst by powershell (Office 365 azure)

I opened a support request with MS for: Move After 14 days all items in the folder "deleted items" to the archive. 

- But after two days I noticed that the emails were moved "after 14 days" of the "all folders", moving approximately 90% of the emails from all users (roughly 2GB each user). 

- How do I export a mailbox (with sub folders) to pst file (by powershell)? 
- After, i can to import this pst file by powershell to mailbox?! 
- Or I can undo what has been done and return the emails to the main box?

Thanks.

- - My system:
Office 365 
Mdulo Windows Azure Active Directory para Windows PowerShell
All users are in the office 365 (I have no local exchange)
Dirsync, ADFS, DC in cloud (azure)



November 3rd, 2014 8:16pm

Hi,

You may try to run the following command:

New-MailboxExportRequest -Mailbox JSmith -FilePath "\\SERVER01\PSTFileShare\Jsmith.pst" -IsArchive

For more information, please refer:

Mailbox import and export requests

http://technet.microsoft.com/en-us/library/ee633455(v=exchg.150).aspx

If you need further assitance about the powershell command, you can post a question in Exchange forum:

https://social.technet.microsoft.com/Forums/office/en-US/home?category=exchangeserver

Regards,

Steve Fan
TechNet Community Support

Free Windows Admin Tool Kit Click here and download it now
November 4th, 2014 7:10am

I have a problem with command, because i need to Office 365 powershell.

PS C:\Windows\system32> New-MailboxExportRequest -Mailbox xxxx@ xxxxxxxx.com.br -Fi
lePath "C:\temp\xxxxxx_archive.pst" -IsArchive
New-MailboxExportRequest : The term 'New-MailboxExportRequest' is not
recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
At line:1 char:1
+ New-MailboxExportRequest -Mailbox xxxx@ xxxxxxxx.com.br -FilePath
"C:\temp\xxxxx_arc ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (New-MailboxExportRequest:String
   ) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Thanks Steve.

November 4th, 2014 6:52pm

New-MailboxExportRequest is an Exchange 2013 command

This will no work for Exchange Online.

I don't think it is possible to export to PST from Exchange Online Powershell yet

Free Windows Admin Tool Kit Click here and download it now
March 26th, 2015 11:33am

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

Other recent topics Other recent topics