I trying to connect esx with the following commands:
$esxServerInstance = Connect-VIServer -Server -esxServer -User $esxUsername -Password $esxPassword
Add-VMHost -Location "myvcenter" -Server $esxServerInstanmce -Name -esxServer -User $esxUsername -Password $esxPassword
I want to don' get prompt, How do I solve it?
VMTN has an area for PowerCLI, I’ve reported your thread so a moderator should now move it there.
I'm not sure what you are trying to do here.
You connect to an ESXi node and then you want to "add" that ESXi node to the ESXi node?!?
That works when you are connected to a VCSA, not to an ESXi node.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference