Fix New-Mailbox -Shared Active Directory Attribute Error in Exchange Online
Question details
The user encounters an Active Directory attribute error when attempting to create a shared mailbox using the New-Mailbox -Shared PowerShell command, even though web interface creation works perfectly.

- Product
- Exchange Online PowerShell
- Device & OS
- Windows
- Scenario
- Creating a shared mailbox using the New-Mailbox -Shared command in a cloud-only Exchange Online environment.
- Observed behavior
- The PowerShell command fails with an Active Directory operation or attribute conversion error despite the environment being purely cloud-based, which may be caused by regional settings or module parsing issues.
Ensure you have the latest version of the ExchangeOnlineManagement module installed and that you have active Exchange Administrator privileges in your Microsoft 365 tenant.
Run the Command in an English Windows Environment
Bypass regional parsing issues by executing the command on a system configured with English (US) language and keyboard settings.
In many cases, the Active Directory attribute error triggered by Exchange Online commands (like New-Mailbox or New-DkimSigningConfig) is caused by localization bugs in PowerShell. Changing your operating system language and keyboard to English often resolves parameter parsing conflicts.
Press Windows + I to open Settings, then navigate to Time & Language > Language.
Click 'Add a language', search for 'English (United States)', install it, and set it as your Windows display language.
Ensure the active keyboard layout in the system tray is set to US English.
Restart PowerShell, reconnect using Connect-ExchangeOnline, and run the New-Mailbox -Shared command again.
Update ExchangeOnlineManagement Module
Ensure that your Exchange PowerShell module is up to date to prevent bug-related attribute errors.
Use the Microsoft 365 Admin Center
If PowerShell continues to fail due to local environment issues, use the web GUI to create the shared mailbox as a reliable workaround.
Manage Your Office Documents Seamlessly with WPS Office
While troubleshooting Exchange Online issues, you can rely on WPS Office for your local and cloud document management needs. It is a highly compatible, free, and lightweight alternative to Microsoft Office that perfectly supports Word, Excel, and PowerPoint formats.

Frequently Asked Questions
Why does the New-Mailbox command fail in PowerShell but work in the web admin center?
PowerShell parameter parsing can sometimes conflict with local Windows language or keyboard settings, causing attribute conversion errors before the command even reaches Microsoft's servers. The web admin center bypasses your local OS regional settings.
Does this Active Directory attribute error mean I have an on-premises sync issue?
Not necessarily. This specific error frequently occurs in entirely cloud-based Microsoft 365 tenants without any on-premises Exchange servers, usually due to Exchange Online PowerShell bugs or Windows localization parsing issues.
How do I check my current ExchangeOnlineManagement module version?
Run the command 'Get-Module -Name ExchangeOnlineManagement -ListAvailable' in PowerShell. This will display the current version installed on your system. Keeping this module updated can prevent known command bugs.
What should I do if changing the Windows language doesn't resolve the PowerShell error?
If the issue persists in a cloud-only tenant and your module is fully updated, open a Microsoft support request directly from your Microsoft 365 Admin Center. Be sure to include your module version, tenant details, and the full red error output.




