hi gurus
I would like to know if it is possible to turn on VM on an ESXi host using powercli, so instead of going into the ESXi host using ssh and running the power on command but rather doing from powercli, this is to turn on multiple VMs.
Thanks a bunch
Connect to the the vSphere server (ESXi node or VCSA).
Connect-VIServer -Name <vSphere-server> -Credential (Get-Credential)
Then get the VM and start it
$vmName = 'MyVM'
Get-VM -Name $vmName | Start-VM -COnfirm:$false
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Yes it is possible.
Use Connect-VIServer commandlet to connect to the host.
Then Start-VM commandlet to start your chosen VM(s).
Connect to the the vSphere server (ESXi node or VCSA).
Connect-VIServer -Name <vSphere-server> -Credential (Get-Credential)
Then get the VM and start it
$vmName = 'MyVM'
Get-VM -Name $vmName | Start-VM -COnfirm:$false
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
L.
Thanks for jumping in, can I connect to the ESXi host and perform the same task ?
Thanks
You connect to vCenter or ESXi servers using Connect-VIServer in the same way.
Like I said earlier, any vSphere Server, be it ESXi or vCenter.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
misunderstood.
thanks