One Day Sec

What is the prerequisite for exporting emails using the New-MailboxExportRequest cmdlet via a remote PSSession?

The user account must be assigned to the "Mailbox Import Export" role group. You can add a user with the command `New-ManagementRoleAssignment –Role "Mailbox Import Export" –User Administrator`. Without this role, the export request will fail. After exporting, you may remove the assignment using `Remove-ManagementRoleAssignment -Identity "Mailbox Import Export-Administrator" -Confirm:$false`.
Mailbox Import Export roleNew-MailboxExportRequestrole group assignment

Browse all Q&A →