Did you know you can change the display name of a shared mailbox in PowerShell? This can come in handy when you want to update the display name of a shared mailbox for better organization or clarity. Let's delve into how you can achieve this with PowerShell.

Before we start, ensure you have the required permissions and the Exchange Online PowerShell V2 module installed. If you haven't installed it, you can do so using the command: Install-Module -Name ExchangeOnlineManagement.

Understanding Shared Mailboxes and Display Names
A shared mailbox in Exchange Online allows multiple users to access and manage emails from a common mailbox. The display name is the name that appears in the global address list (GAL), on recipient lists, and in other places. Let's see how we can modify this.

Please note that changes to display names might take a few hours to propagate through the entire organization.
Finding Your Shared Mailbox

Before you can change the display name, you need to find the shared mailbox. Use the following cmdlet to retrieve a list of mailboxes:
Get-Mailbox -ResultSize Unlimited
Changing the Display Name

Once you have the mailbox ID, you can change the display name using the 'Set-Mailbox' cmdlet. Here's an example:
Set-Mailbox -Identity "sharedmailbox@yourdomain.com" -Name "New Display Name"
Replace "sharedmailbox@yourdomain.com" with your shared mailbox's email address and "New Display Name" with the display name you want to set.

Verifying the Display Name Change
After changing the display name, verify the change has taken effect. You can use the 'Get-Mailbox' cmdlet again and check the 'Name' property:









Get-Mailbox -Identity "sharedmailbox@yourdomain.com"
Display Name Changes in the GAL
The updated display name should now appear in the GAL. Note that changes to the GAL might take a few hours to propagate. To ensure that the updated display name appears in the GAL, use the 'Update-Recipientfilter' cmdlet:
Update-RecipientFilter -Identity 'GAL' -ły (RecipientType -eq 'Mail */GroupMailbox' -and RecipientContains 'sharedmailbox@yourdomain.com')
And there you have it! You've successfully changed the display name of a shared mailbox using PowerShell. Regularly updating your mailbox settings can help keep your organization's communication efficient and clear.