# New-UcmReportStep

{% hint style="info" %}
For a full overview, check [About UCM Reporting Cmdlets](https://docs.ucmadscientist.com/using-ucmpstools/cmdlet-reference/reporting-and-logging#about-ucm-reporting-cmdlets)
{% endhint %}

## Description

Adds a new **ReportStep** to the current **ReportItem**

## Parameters

**-StepName:** This is the name of the Step, translating to the title of the column for each of the rows of the first row, for example, "Enable User"\
\
\&#xNAN;**-StepResult:** This is the value of the action performed. This is a freeform field, but should it contain "OK" "Warn" or "Error", HTML reports will automatically have their cells coloured Green, Yellow and Red respectively.&#x20;

## Example

<pre class="language-powershell"><code class="lang-powershell">New-UCMReportItem -LineTitle "Username" -LineMessage "AppleJack@ucmadscientist.com"
<strong>    New-UcmReportStep -Stepname "Enable User" -StepResult "OK: Created User"
</strong>    New-UcmReportStep -Stepname "Assign Licence" -StepResult "OK: Assigned Licence"
    New-UcmReportStep -Stepname "Assign Policy" -StepResult "OK: Policy Assigned"

New-UCMReportItem -LineTitle "Username" -LineMessage "Discord@ucmadscientist.com"
    ...
    ...
</code></pre>

## Inputs

This function accepts no inputs

## Outputs

This cmdlet does not output anything to the pipeline
