PoshCode Logo PowerShell Code Repository

PowerCLI error report (modification of post by view diff)
embed code: <script type="text/javascript" src="http://PoshCode.org/embed/2020"></script>download | new post

Generating error report bundle for VMware PowerCLI / vSphere

  1. $getVmScript = {
  2.         Connect-VIServer yourVCenterServer
  3.         Get-VM
  4. }
  5. $ getVmScript | Get-ErrorReport -ProblemScriptTimeoutSeconds 60 -ProblemDescription "Get-VM hangs when trying to retrieve all the VMs form the server. The server’s inventory can be successfully browsed via the vClient." -Destination 'D:\bug report'

Submit a correction or amendment below (
click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:


Remember me