Getting user mailbox health data in Office365

  • 7019120
  • 17-Nov-2015
  • 07-Aug-2017


Office 365


Retain is aborting on a particular user during archive jobs. Is it Retain failing or O365?


MS gave us some guidance for determining the status of a user:

Please find the powershell commands to login as an Admin to run the commands –
Copy paste all the following three commands at once to a powershell window –

$UserCredential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Credential $UserCredential -Authentication Basic –AllowRedirection

Import-PSSession $Session

It will prompt you for Admin credentials. Key in the credentials and you should be able to connect.
Now, type the following commands to gather the data. The first command is to save the transcript so that the output is saved to a text file on the local machine. (Alias = Alias of user account for whom we are getting the error)


get-mailbox <Alias> |fl

get-recipient <Alias> |fl

To run the third command, you need to launch Azure powershell - (First install the Microsoft Online Services Sign-In Assistant for IT Professionals RTW from the Microsoft Download Center. Then install the Azure Active Directory Module for Windows PowerShell (64-bit version), and click Run to run the installer package)

Run the following commands –

get-msoluser -userprincipalname <Email> |fl

Additional Information

This article was originally published in the GWAVA knowledgebase as article ID 2658.