- Run PoweShell as administrator.
- Run Login Office 365 command: $UserCredential = Get-Credential
- Run session command: $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
- Run import session commnad: Import-PSSession $Session -DisableNameChecking
- List the mailboxes status command: get-mailbox
- Start-ManagedFolderAssistant -Identity “mailbox name”
Note: mailbox name could be username@company.com.