Tried like this but failed.
Is I am correct?
These servers are already disconnected in vcenter., I connected to Vcenter.
Set-VMHost -State Connected -VMHost 10.50.56.151,10.50.56.65,10.50.56.107,10.50.56.168 |Get-VMHostAuthentication |Set-VMHostAuthentication -Username root -Password 'trustno1' -JoinDomain $false
connect-viserver : 21-Dec-15 8:38:05 PM Connect-VIServer Could not
determine user name and/or password for server 10.50.56.168
At line:1 char:1
+ connect-viserver 10.50.56.151,10.50.56.65,
10.50.56.151,10.50.56.65,10.50.56.107 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
+ CategoryInfo : NotSpecified: (:) [Connect-VIServer], ViServerCo
nnectionException
+ FullyQualifiedErrorId : ViCore_Login_CredentialNotFound,VMware.VimAutoma
tion.ViCore.Cmdlets.Commands.ConnectVIServer