Hi,
I manage to connect the esxi 4.1 hosts over ssh using powercli by following the instruction mentioned in the link:
It is working perfectly but the for certain commands where $ is involved it is not working. Command is as shown below:
Invoke-SSHCommand -InvokeOnAll -Command 'esxcfg-vswitch -l | grep vSwitch | awk '{print $1,$2}'''
Anyone has any idea to follow any specific format for such commands.