> ## Documentation Index
> Fetch the complete documentation index at: https://docs.askui.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AskUI-NewErrorReport

### 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

Creates and submits an error report with default settings.

```powershell theme={null}
AskUI-NewErrorReport
```

#### EXAMPLE 2

Creates report with project files, specific log file, and 48-hour log history.

```powershell theme={null}
AskUI-NewErrorReport -Project "C:\MyProject" -AdditionalFiles "error.log" -MaxLogFileAgeInHours 48
```

#### EXAMPLE 3

Creates report locally without submission, preserves files, and skips approval prompt.

```powershell theme={null}
AskUI-NewErrorReport -SkipSubmit -SkipCleanup -AutoApprove
```
