question

PaarthasarathyJS-2939 avatar image
0 Votes"
PaarthasarathyJS-2939 asked ElevenYu-MSFT commented

How to switch Exchange Server PowerShell from NoLanguage mode to FullLanguage mode

I am using Remote PowerShell to communicate with a remote exchange server. But after installing the security update Security update for Microsoft Exchange Server 2019, 2016, and 2013: April 13, 2021 (KB5001779), the PowerShell language mode on the server has been changed to NoLanguage mode. As a result, I cannot execute PS scripts as I did previously. Is there any way (Configuration/Settings/Command) to change the language mode back to FullLanguage?

windows-server-powershell
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Have you checked if the answer helps?

If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.

0 Votes 0 ·

1 Answer

LeonLaude avatar image
1 Vote"
LeonLaude answered LeonLaude commented

Hi @PaarthasarathyJS-2939,

Something here might help:

“The syntax is not supported by this runspace” error after installing April 2021 Exchange security update (or later updates)
https://support.microsoft.com/en-us/topic/-the-syntax-is-not-supported-by-this-runspace-error-after-installing-april-2021-exchange-security-update-or-later-updates-ac2d4e97-62f6-4ad4-9dbb-0ade9b79f599


If the reply was helpful please don't forget to upvote and/or accept as answer, thank you!


Best regards,
Leon

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @LeonLaude ,

Thanks for your quick reply. As per the link you shared, we have to change all AddScript() to AddCommand() in existing code. Which means we cannot execute any PS scripts. Is there any way which could help me executing scripts?

0 Votes 0 ·
LeonLaude avatar image LeonLaude PaarthasarathyJS-2939 ·

Please go through the comments section of the blog post for this april security patch:
https://techcommunity.microsoft.com/t5/exchange-team-blog/released-april-2021-exchange-server-security-updates/ba-p/2254617#comments

Other users have also the same issue, they have some workarounds in the comments.

0 Votes 0 ·