VMware vCenter Server 6.x
VMware vCenter Server 7.x
VMware vCenter Server 8.x
To narrow down which host is causing the issue you can disconnect all hosts from the database and then add them back one by one until you locate the culprit for closer inspection.
$password = "EXAMPLE_PASSWORD"
get-vmhost | % {
$view = get-view $_.id
$arg = new-object VMware.Vim.HostConnectSpec
$arg.userName = "root"
$arg.password = $password
$arg.force = $true
$view.ReconnectHost_Task($arg,$null)
}
Disconnect-VIServer -Confirm:$false