SYNOPSIS

Creates a new AskUI error report.

DESCRIPTION

The AskUI-NewErrorReport cmdlet creates, compresses and optionally submits a new error report containing project files, logs, and additional artifacts for troubleshooting AskUI issues.

PARAMETERS

  • -Project | <String[]> - Project directories to be included in the error report.
  • -AdditionalFiles | <String[]> - Additional files to be included in the error report. (e.g. annotations, screenshots)
  • -MaxLogFileAgeInHours | <Int32> - Maximum age of log files to be included in the error report. Default: 96 hours (4 days)
  • -SkipCleanup | <SwitchParameter> - Skip cleanup of the expanded error report directory.
  • -SkipSubmit | <SwitchParameter> - Skip submitting the error report archive to the cloud.
  • -AutoApprove | <SwitchParameter> - Automatically approve the error report content.

EXAMPLES

EXAMPLE 1

AskUI-NewErrorReport
Creates and submits an error report with default settings.

EXAMPLE 2

AskUI-NewErrorReport -Project "C:\MyProject" -AdditionalFiles "error.log" -MaxLogFileAgeInHours 48
Creates report with project files, specific log file, and 48-hour log history.

EXAMPLE 3

AskUI-NewErrorReport -SkipSubmit -SkipCleanup -AutoApprove
Creates report locally without submission, preserves files, and skips approval prompt.