Tuesday 29 January 2019

Resolved: something went wrong. You don't have permission to open this mailbox

I was trying to assign full admin rights on mailbox "A" to mailbox "B" in Exchange Server 2013, so will access /owa with mailbox credentials of mailbox "B" and then access mailbox "A" in it. But i faced the following issue while accessing in OWA.

something went wrong


You don't have permission to open this mailbox.

X-ClientId: PGCP - 0PQE - SIGS - FGVSWBQ X-OWA-Error: SDServerErr;Microsoft.Exchange.Clients.Owa2.Server.Core.OwaExplicitLogonException X-OWA-Version: 15.0.1367.3 X-FEServer: MBCS01 X-BEServer: mbcs03.domain.com Date: 1/29/2019 3:34:26 PM
Even that full access was assigned on mailbox "A" to mailbox "B".
in my case mailbox "B" had full admin access but was also having other management roles like
  1. Discovery management
  2. Server management
  3. recipient management
  4. etc.
So i just create another mailbox "Z" and assign the full admin rights on mailbox "A" to mailbox "Z" and then i was able to access Mailbox "A" in /owa of mailbox "Z"

So it means we should create a simple mailbox and assign full admin rights. then it should work

Search mailboxes in Exchange server 2013 and delete or move the content to another mailbox

1)
To Search email between 2 specific dates and move the content to another mailbox.
First lets create the following 3 variables and put the values as per your requirements

$Fromdate ="10/01/2018";
$Todate = "01/20/2019";
$date="Received:"+$Fromdate+".."+$Todate

Search-Mailbox v.hili@domain.com -SearchQuery "$date" -TargetMailbox khaaz@domain.com -TargetFolder ToFromHilal

2
Tested: to copy data from one mailbox to another one.
Search-Mailbox v.hil@domain.com -SearchQuery 'Subject:"RDP"' -TargetMailbox khaaz@domain.com -TargetFolder tohilal

3
Tested: To Delete content from a mailbox of a subject.
Search-Mailbox -Identity "khaaz@domain.com" -SearchQuery 'Subject:"sook sook"' -DeleteCon
tent

4
To Search all mailboxes that contain the words country OR province OR districts, and copy the result to khaaz@domain.com mailbox in Country Folder
Get-Mailbox | Search-Mailbox -SearchQuery 'country OR province OR districts' -TargetMailbox khaaz@domain.com -TargetFolder "AllMailboxes-Country" -LogLevel Full