Forum Discussion
Matt Kopf
Aug 03, 2018Copper Contributor
Having problem with search-mailbox cmdlet
I am trying to work with the Search-Mailbox cmdlet to copy email from one user to another. I start a PS windows as Admin. Connect to O365 Import-Module MSOnline $cred = Get-Credential -Message 'e...
VasilMichev
Aug 03, 2018MVP
You need to be a member of the Mailbox Import Export or the Mailbox Search role:
Get-ManagementRole -Cmdlet Search-Mailbox -CmdletParameters TargetMailbox Name RoleType ---- -------- Mailbox Import Export MailboxImportExport Mailbox Search MailboxSearch