Generate a PowerCLI support bundle and send it to VMware support to help them resolve your problem.

If you encounter a problem in PowerCLI that you cannot resolve, you can open a support request for VMware.

Generate and download a PowerCLI support bundle in the form of a ZIP file and attach it to your VMware support request.

Procedure

  1. Create a variable with the script that produced the error.
    $errorcode = {
        $vm = Get-VM vCLS*
        Start-VM $vm
    }
  2. Generate and download the support bundle by running the Get-ErrorReport cmdlet.
    Get-ErrorReport -ProblemScript $errorcode -Destination .\Downloads -ProblemDescription "VM would not power on"

    Optional: Тo limit the size of your support bundle, include the MaxDataDepth parameter which specifies object data depth for the report. For example, to limit object data depth to one level, add -MaxDataDepth 1 to the above example.

Results

The ZIP file that contains environmental information about the error is saved at the specified destination.

What to do next

Attach or upload the ZIP file and submit your VMware support request.