For a targeted approach to administration, you can use the CIVM and CIVMGuest cmdlets to handle lifecycle operations for one or more virtual machines.
Prerequisites
Verify that you are connected
to a
vCloud
Director
server.
Procedure
- Retrieve all virtual machines with names starting with MyVM and power them on.
Get-CIVM -Name 'MyVM*' | Start-CIVM
- Suspend all virtual machines with names starting with YourVM.
Get-CIVM -Name 'YourVM*' | Suspend-CIVM
- Power off the virtual machine named MyVM1.
Get-CIVM -Name 'MyVM1' | Stop-CIVM
- Shut down the guest operating system of the virtual machine named MyVM2.
Get-CIVM -Name 'MyVM2' | Stop-CIVMGuest
- Restart the guest operating system of the virtual machine named MyVM3.
Get-CIVM -Name 'MyVM3' | Restart-CIVMGuest
- Reset the nonresponsive virtual machine named MyVM4.
Get-CIVM -Name 'MyVM4' | Restart-CIVM