logo
search
Exchange Connection Problems

Fix New-Mailbox -Shared Active Directory Attribute Error in Exchange Online

Tauseeq MagsiTauseeq Magsi Oct 9, 2026 871 views

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.

Fix New-Mailbox -Shared Active Directory Attribute Error in Exchange Online
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.
Before you start

Ensure you have the latest version of the ExchangeOnlineManagement module installed and that you have active Exchange Administrator privileges in your Microsoft 365 tenant.

Solution 1Recommended

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.

1
Open Language Settings

Press Windows + I to open Settings, then navigate to Time & Language > Language.

2
Change Windows Display Language

Click 'Add a language', search for 'English (United States)', install it, and set it as your Windows display language.

3
Update Keyboard Layout

Ensure the active keyboard layout in the system tray is set to US English.

4
Execute Command Again

Restart PowerShell, reconnect using Connect-ExchangeOnline, and run the New-Mailbox -Shared command again.

Virtual Machine Alternative: If you cannot change the language on your main PC, installing a lightweight virtual machine running an English version of Windows will also work.
Free Microsoft Office alternative

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.

Fully compatible with Microsoft Office formats including .docx, .xlsx, and .pptx.Lightweight installation that runs flawlessly on Windows, Mac, and Linux.Free to use with a familiar, user-friendly interface that requires no learning curve.Built-in PDF editing, document conversion, and seamless cloud collaboration tools.
microsoft office alternative - wps office

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.