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 VMware Cloud Director server.

Procedure

  1. Retrieve all virtual machines with names starting with MyVM and power them on.
    Get-CIVM -Name 'MyVM*' | Start-CIVM
  2. Suspend all virtual machines with names starting with YourVM.
    Get-CIVM -Name 'YourVM*' | Suspend-CIVM
  3. Power off the virtual machine named MyVM1.
    Get-CIVM -Name 'MyVM1' | Stop-CIVM
  4. Shut down the guest operating system of the virtual machine named MyVM2.
    Get-CIVM -Name 'MyVM2' | Stop-CIVMGuest
  5. Restart the guest operating system of the virtual machine named MyVM3.
    Get-CIVM -Name 'MyVM3' | Restart-CIVMGuest
  6. Reset the nonresponsive virtual machine named MyVM4.
    Get-CIVM -Name 'MyVM4' | Restart-CIVM