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

SQLNeophyte 1 Reputation point
2021-06-16T05:43:37.927+00:00

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
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,504 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Laude 85,776 Reputation points
    2021-06-16T05:53:52.107+00:00

    Hi @SQLNeophyte ,

    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

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.