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

 

6

we can use powershell command connect-viserver –server “server ip or host name” to connect vcenter server.

1

 

To get the names of the vms which are hosted in the vmware cluster we have to use get-vm

2

 

Here im going to shutdown all the testvms in my vmware cluster

Get-vm –name test* | stop-vm

4

 

For creatig snapshot of the vm we can use new-snapshot cmdlet

 

5

 

Using Get-vicommand we can all the available vmware powershell commands

6

Advertisements