UcmPsTools Documentation
  • Welcome! - UcmPsTools
  • Using UcmPsTools
    • QuickStart
    • About UcmPSTools
    • Using UcmPsTools in your Automation
    • Cmdlet Reference
      • Accounts and Voice Apps
        • New-UcmOffice365User -todo
        • New-UcmTeamsResourceAccount - todo
      • Auditing and Planning
        • Measure-UcmOnPremNumberRange
      • Call Management
        • New-UcmCsFixedNumberDiversion
      • Connections and Modules
      • Licences and Service Plans
      • Reporting and Logging
        • Complete-UcmReport
        • Export-UcmCSVReport
        • Export-UcmHTMLReport
        • Initialize-UcmReport
        • New-UcmReportItem
        • New-UcmReportStep
        • Search-UcmCsOnPremNumberRange
        • Write-UcmLog
    • Example Scripts
  • UcmPsTools In Depth
    • More about UcmPsTools
    • Security In UcmPsTools
    • UcmPsTools Cmdlet Status Reporting
  • Contributing to UcmPsTools
    • New Function Rules
    • Pull Process
Powered by GitBook
On this page
  • Description
  • Parameters
  • Example
  • Inputs
  • Outputs
  1. Using UcmPsTools
  2. Cmdlet Reference
  3. Reporting and Logging

New-UcmReportItem

Adds a new Line Object to the Report

PreviousInitialize-UcmReportNextNew-UcmReportStep

Last updated 2 years ago

For a full overview, check

Description

Adds a new Line Object to the Report

Parameters

-LineTitle: This is the title of the first column in the report and should be the same for every ReportItem. -LineMessage: This is the value we are setting the first cell to and should be unique to prevent conflicts. In the above example "AppleJack" was used the first time we called New-UcmReportItem, and "Discord" the second time

Example

New-UCMReportItem -LineTitle "Username" -LineMessage "AppleJack@ucmadscientist.com"
    New-UcmReportStep -Stepname "Enable User" -StepResult "OK: Created User"
    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"
    ...
    ...

Inputs

This function accepts no inputs

Outputs

This cmdlet does not output anything to the pipeline

About UCM Reporting Cmdlets