“The syntax is not supported by this runspace” error after installing April 2021 Exchange security update (or later updates)

Symptoms

After you install the April 2021 security update (or later updates) for Microsoft Exchange Server 2019, 2016, or 2013, applications start returning one of the following error messages: 

Message 1

The syntax is not supported by this runspace. This can occur if the runspace is in no-language mode.

Message 2

Exception occured System.Management.Automation.RemoteException: The syntax is not supported by this runspace. This can occur if the runspace is in no-language mode. at System.Management.Automation.Runspaces.AsyncResult.EndInvoke() at System.Management.Automation.PowerShell.CoreInvokeRemoteHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output,

In this situation, the application doesn't retrieve information through Remote PowerShell from the server that's running Exchange Server. In some cases, the application stops responding.

Cause

The Exchange Management Console endpoint on the Exchange-based server was changed from FullLanguage mode to NoLanguage mode. Applications that use the FullLanguage mode features of Remote PowerShell now experience the error that is described in the "Symptoms" section when they process Remote PowerShell calls.

Resolution

To resolve this problem, the application developer has to update the application to work with the new, more restrictive state of the Exchange Shell. 

Additionally, we recommend that you use of either of the following solutions:

More information

For more information about the April 2021 security updates, see the following Exchange Team Blog article:

Released: April 2021 Exchange Server Security Updates - Microsoft Tech Community

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×