Today I have installed vmwaer powercli in one of vcenter server and its very useful tool. Its almost like server 2012, hyper-v PowerShell module.We can use this for create scripts or perform management tasks with multiple vms with same time.
To get the available cli commands we have to open powercli and type get-vicommand
we can use powershell command connect-viserver –server “server ip or host name” to connect vcenter server.
To get the names of the vms which are hosted in the vmware cluster we have to use get-vm
Here im going to shutdown all the testvms in my vmware cluster
Get-vm –name test* | stop-vm
For creatig snapshot of the vm we can use new-snapshot cmdlet
Using Get-vicommand we can all the available vmware powershell commands