Has anyone come across an issue with running the Test-ExchangeServerHealth script, where when the database is mounted on Server01 it reports the following error message below. If the database is mounted on Server02, the script runs flawlessly with no issues.
Mail flow test: WARNING: Connecting to remote server "servername" failed with the following error message : The WinRM clie
nt received an
HTTP bad request status (400), but the remote service did not include any other information about the cause of the
failure. For more information, see the about_Remote_Troubleshooting Help topic.
WARNING: Cannot validate argument on parameter 'Session'. The argument is null or empty. Provide an argument that is
not null or empty, and then try the command again.
Remove-PSSession : Cannot validate argument on parameter 'Id'. The argument is null. Provide a valid value for the
argument, and then try running the command again.
At C:\SCRIPTS\Server_Health\Test-ExchangeServerHealth.ps1:425 char:19
+ Remove-PSSession $session.Id
+ ~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Remove-PSSession], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.RemovePSSessionCommand