Sunday 30 January 2022

To show complete value of a property of a user without ...

Some time you want to see the value of an attribute of a user/mailbox through powershell command but the output you getting would be in ... at the end. so to get the complete value, should run the following command. 
Get-mailbox nawaz.khan* | select-object -expandproperty EmailAddresses

Thursday 6 January 2022

Resolved: pick an account + there was an issue with forgetting user@domain.com. please try later

My outlook app on on mobile device was not connecting to my office 365 mailbox as i had recently changed my UserPrinciple name and primarySMTPAddress in office 365, as it was business requirement.

Tried to reset my account but no luck.

Tried to forget my old account but no luck, getting the following error in the outlook app.  

pick an account + there was an issue with forgetting nawaz@olddomain.com, please try later

Tried to add the account with the new smtp address (nawaz@newdomain.com) but no luck, as it again and again asking for the credentials and picking to that old smtp address (nawaz@olddomain.com)

At the end, open the company portal app and found that there was no user signed in. 

so in the company portal app , re-sign in with new PrimarySMTPaddress nawaz@newdomain.com. once the new address verified there, was able to add the office 365 account in the outlook App.

Wednesday 5 January 2022

Your archive mailbox is almost full

  1. Connect to Exchange Online Powershell.
  2. Run the following commandlet for the user: Enable-Mailbox <user mailbox> -AutoExpandingArchive
  3. Run the following commandlet to confirm it is enabled for the user: Get-Mailbox <user mailbox> | FL AutoExpandingArchiveEnabled

 

As per below example:

Connect-ExchangeOnline

then run the following command to confirm the current "AutoExpandingArchiveEnabled" status. if it is not enabled/false. 

Get-Mailbox nawaz@domain.com| FL AutoExpandingArchiveEnabled

AutoExpandingArchiveEnabled : False


Lets enable it true with the following command.

PS C:\Users\Nawaz> Enable-Mailbox nawaz@domain.com -AutoExpandingArchive

Name                      Alias           Database                       ProhibitSendQuota    ExternalDirectoryObjectId

----                      -----           --------                       -----------------    -------------------------

nawaz     EURPdfR07DG198-db121             99 GB (106,300,44... 788cddcf3-f92f-4497-b95c-2b1dcea6982dff


And lets check it again.

PS C:\Users\Nawaz> Get-Mailbox nawaz@domain.com | FL AutoExpandingArchiveEnabled

AutoExpandingArchiveEnabled : True


To force the MFA (Managed Folder Assistant) to immediately process a specified mailbox

run 

Start-ManagedFolderAssistant -Identity nawaz@domain.com