New-M365DSCReportFromConfiguration¶
Description¶
Parses a DSC configuration file and renders a report in the requested output format. Supports Excel, HTML, JSON, Markdown, and CSV output types.
Output¶
This function does not generate any output.
Parameters¶
| Parameter | Required | DataType | Default Value | Allowed Values | Description |
|---|---|---|---|---|---|
| Type | True | String | Excel, HTML, JSON, Markdown, CSV | Specifies the report output format. | |
| ConfigurationPath | True | String | Specifies the source DSC configuration file path. | ||
| OutputPath | True | String | Specifies the destination report file path. |
Examples¶
-------------------------- EXAMPLE 1 --------------------------
New-M365DSCReportFromConfiguration -Type 'HTML' -ConfigurationPath 'C:\DSC\ConfigName.ps1' -OutputPath 'C:\Dsc\M365Report.html'
-------------------------- EXAMPLE 2 --------------------------
New-M365DSCReportFromConfiguration -Type 'Excel' -ConfigurationPath 'C:\DSC\ConfigName.ps1' -OutputPath 'C:\Dsc\M365Report.xlsx'
-------------------------- EXAMPLE 3 --------------------------
New-M365DSCReportFromConfiguration -Type 'JSON' -ConfigurationPath 'C:\DSC\ConfigName.ps1' -OutputPath 'C:\Dsc\M365Report.json'