PoshCode Archive  Artifact [aa2f2d8f5c]

Artifact aa2f2d8f5cf3fe949608010e21aea9c6a3644a14ec73b66e7fafb461a7abbc76:

  • File PowerCLI-error-report.ps1 — part of check-in [b29f5c4fec] at 2018-06-10 13:04:11 on branch trunk — Generating error report bundle for VMware PowerCLI / vSphere (user: unknown size: 580)

# encoding: utf-8
# api: powershell
# title: PowerCLI error report
# description: Generating error report bundle for VMware PowerCLI / vSphere
# version: 0.1
# type: script
# license: CC0
# x-poshcode-id: 2020
# x-archived: 2010-07-26T15:34:05
#
#
$getVmScript = { 
	Connect-VIServer yourVCenterServer
	Get-VM
}
$ 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'