Powershell icon indicating copy to clipboard operation
Powershell copied to clipboard

Test-EmmReadiness returns multiple errors.

Open BoBeB opened this issue 1 year ago • 1 comments

Describe the bug running Test-EmmReadiness returns multiple errors.

Checking SSL Certificate Validity Cannot index into a null array. At C:\Program Files\WindowsPoweTest-EmmReadinessrShell\Modules\EmmExDAGModule\2.2\EmmExDAGModule.psm1:542 char:18 + $cn = $matches[1] + ~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : NullArray

get-cluster : The cluster service is not running. Make sure that the service is running on all nodes in the cluster

Get-Cluster : An error occurred opening cluster 'DAG19'. No such host is known At C:\Program Files\WindowsPowerShell\Modules\EmmExDAGModule\2.2\EmmExDAGModule.psm1:615 char:19 + $Status=Get-Cluster (Get-DatabaseAvailabilityGroup)| Get-Cl ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-Cluster], ClusterCmdletException + FullyQualifiedErrorId : Get-Cluster,Microsoft.FailoverClusters.PowerShell.GetClusterCommand WARNING: The number of available clusters is not enough, Please resume one node at least

To Reproduce run Test-EmmReadiness

Expected behavior able to check cluster and certificate.

Screenshots image

PowerShell version:

  • 5.1

Running on Windows :

  • Windows Server 2019

BoBeB avatar Mar 13 '24 09:03 BoBeB

Hi, For the cluster issue, it seems that you have an IP-Less cluster Please run on your Exchange PowerShell Get-ClusterResource For the Certificate issue, it seems that your Exchange doesn't hold any certificate... Would you please run the following commands:

Get-ExchangeCertificate
$SrvCert=Get-ExchangeCertificate
$SrvCert[0].Subject
$SrvCert[0].Subject -match "CN=([^,]*)"
$matches

farismalaeb avatar Mar 13 '24 15:03 farismalaeb