Get-ErrorReport

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.

Syntax

-ProblemScript  <ScriptBlock>
[[-Destination]  <DirectoryInfo>]
[[-ProblemDescription]  <String>]
[-IncludeServerLogs]
[-MaxDataDepth  <Int32>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
ProblemScript
ScriptBlock named
  • pipeline
  • Specifies the script that reproduces the error that you want to report.
    optional
    Destination
    DirectoryInfo 1 Specifies the directory where you want to save the error report. If no value is specified for this parameter, the error report is saved in the current file system location.
    optional
    ProblemDescription
    String 2 Provides a description of the problem you want to capture in the error report bundle.
    optional
    IncludeServerLogs
    SwitchParameter named Indicates that you want the server logs (for example - from vCenter Server) to be included in the error report.
    optional
    MaxDataDepth
    Int32 named Specifies the amount of object data that should be included in the report.

    Output

    System.IO.FileInfo

    Examples


    Related Commands

    Feedback

    Was this page helpful?