VMware Cloud Community
m_pahlevanzadeh
Enthusiast
Enthusiast

powercli get username password in window

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?

0 Kudos
2 Replies
scott28tt
VMware Employee
VMware Employee

VMTN has an area for PowerCLI, I’ve reported your thread so a moderator should now move it there.

 


-------------------------------------------------------------------------------------------------------------------------------------------------------------

Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog
0 Kudos
LucD
Leadership
Leadership

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

0 Kudos