Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Symptoms 

After the January 2023 or the February 2023 Security Update for Microsoft Exchange Server 2019, 2016, or 2013 is installed, and the Certificate Signing of PowerShell Serialization Payload is enabled, the Exchange Toolbox and Queue Viewer doesn't start.

Additionally, you receive a System.Reflection.TargetInvocationException error message and the following Unhandled Exception error message:

  • Unhandled Exception in Managed Code Snap-in

  • Deserialization fails due to one SerializationException: System.Runtime.Serialization.SerializationException: The input stream is not a valid binary format. The starting contents (in bytes) are: 23-73-69-67-23-72-2A-00-00-00-01-00-00-00-FF-FF-FF ... 

  • at System.Runtime.Serialization.Formatters.Binary.SerializationHeaderRecord.Read(__BinaryParser input)

  • Exception type: System.InvalidCastException

Cause

The Managed Code snap-in doesn't deserialize a PowerShell object if the Certificate Signing of PowerShell Serialization Payload feature is turned on.

Resolution  

This issue is fixed in the March 2023 Security Update for Exchange Server. Follow these steps:

  1. Install the March 2023 security update.

  2. If you disabled the Certificate Signing of PowerShell Serialization Payload feature by applying Workaround 2 that was provided previously in this article, you can turn the feature back on by following the steps in Certificate signing of PowerShell serialization payload in Exchange Server.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×