Getting user mailbox health data in Office365

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

Environment


Office 365

Situation


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

Resolution


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 https://outlook.office365.com/powershell-liveid/ -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)

Start-transcript

get-mailbox <Alias> |fl

get-recipient <Alias> |fl

To run the third command, you need to launch Azure powershell - https://msdn.microsoft.com/en-us/library/azure/jj151815.aspx?f=255&MSPPError=-2147217396 (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.