Syntax
Get-ErrorReport [-ProblemScript] <ScriptBlock> [[-Destination] <DirectoryInfo>] [[-ProblemDescription] <String>] [-MaxDataDepth <Int32>] [-IncludeServerLogs] [<CommonParameters>]Related Commands
Get-ErrorReportDetailed Description
This cmdlet collects debugging information in order to investigate a problem in PowerCLI or the work environment. The cmdlet runs a script that reproduces the problem and captures any relevant information in a single .zip file. Then, you can send the .zip file to the PowerCLI support for analysis.Parameters
Return Type
System.IO.FileInfoNotes
Examples
-------------------------- Example 1 --------------------------
# Saves the script that reproduces the error into a variable and passes the script to Get-ErrorReport. The command provides a destination for storing the error report and a description of the observed problem. $script = { Connect-VIServer 10.23.34.36 $vapp = Get-VApp Get-VM VM -Location $vapp } $script | Get-ErrorReport -Destination "D:\error-reports" -ProblemDescription "No VM is returned. There are several VMs in this vApp. The vApp is in a DRS-enabled cluster. All VMs part of the vApp are expected to be returned"