Exchange 2016 ECP / Powershell Error after last CU update

Claudio Di Chiaro 0 Reputation points
2023-11-16T09:10:30.2866667+00:00

, HI,

yesterday, after installing the latest CU 2016 update CU23 Nov23SU 15.1.2507.35, we encountered some strange behavior with some Exchange Powershell commands:

for example: Get-ExchangeServer | Test-MAPIConnectivity

but if I run a single command, Get-ExchangeServer and Test-MAPIConnectivity, not in pipes, it works.

Furthermore, the script to move db between nodes, stops to work:

.\RedistributeActiveDatabases.ps1 -DagName "DAG" -BalanceDbsByActivationPreference -SkipMoveSuppressionCh
ecks
Cannot convert value "DAG" to type "Microsoft.Exchange.Data.Directory.SystemConfiguration.DatabaseAvailabilityGroup". Error: "Cannot convert the "DAG"
value of type "Deserialized.Microsoft.Exchange.Data.Directory.SystemConfiguration.DatabaseAvailabilityGroup" to type
"Microsoft.Exchange.Data.Directory.SystemConfiguration.DatabaseAvailabilityGroup"."
At C:\Program Files\Microsoft\Exchange Server\V15\scripts\RedistributeActiveDatabases.ps1:2815 char:3
+         $script:dag = Get-DatabaseAvailabilityGroup $DagName -Status
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : MetadataError: (:) [], ArgumentTransformationMetadataException
    + FullyQualifiedErrorId : RuntimeException

Log-Error : [09:07:47.004 UTC] Could not find DAG matching 'cartero-dag'!
At C:\Program Files\Microsoft\Exchange Server\V15\scripts\RedistributeActiveDatabases.ps1:2820 char:3
+         Log-Error ($RedistributeActiveDatabases_LocalizedStrings.res_ ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Log-Error
Get-ExchangeServer | Test-MAPIConnectivity
The operation couldn't be performed because object 'XXXXXXX' couldn't be found on 'ADXXX.domain.com'.
    + CategoryInfo          : NotSpecified: (:) [Test-MAPIConnectivity], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=XXXXX,RequestId=812991b5-efa7-4049-a31d-a989fa3456b6,TimeStamp=16/11/2023 08:53:21] [FailureCategory=Cmdlet-ManagementObjectNotFoun
   dException] 186247B,Microsoft.Exchange.Monitoring.TestMapiConnectivity
    + PSComputerName        : XXXXX.domain.com

The operation couldn't be performed because object 'XXXXX' couldn't be found on 'AD4XXX.domain.com'.
    + CategoryInfo          : NotSpecified: (:) [Test-MAPIConnectivity], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : [Server=XXXXX,RequestId=812991b5-efa7-4049-a31d-a989fa3456b6,TimeStamp=16/11/2023 08:53:21] [FailureCategory=Cmdlet-ManagementObjectNotFoun
   dException] 915C3018,Microsoft.Exchange.Monitoring.TestMapiConnectivity
    + PSComputerName        : XXXXX.domain.com

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,705 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yuki Sun-MSFT 41,171 Reputation points Microsoft Vendor
    2023-11-17T02:38:58.9133333+00:00

    Hi @Claudio Di Chiaro ,

    Did you run the command or scripts on Management Tools only machines? If so, it appears that both the two issues have already been aware of, and fixes are currently being working on. For more information and the possible workaround for now, you can refer to the official links below:

    You can keep checking back of the links above for any update.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

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.