Skip to content

itzrahulsoni/psReportHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 

Repository files navigation

##psReportHelper

This is a PowerShell script module for creating an HTML report with CSS. The idea is to build on this, so that multiple PowerShell scripts can use this common repository for creating elaborate HTML reports that contains Tables, Lists, etc with uniform colors and other details.

For more details and example on ReportHelper, visit http://www.dotnetscraps.com/dotnetscraps/post/Creating-a-more-visually-appealing-report-using-PowerShell.aspx

You can modify the CSS for a common look and feel.

You can take a look at Sample\Case1\case1.ps1 to learn how to use the module quickly

Get-Help -full for the command below for detailed help

Set-ReportFile - Set the file where you want to emit a table
Add-TableStart - Start creating the table
Set-ColumnWidth - Set width of columns in advance. For ex. 300, 200, 200, 300 will have 4 columns.
Add-TableStartRow - Start creating the row
Add-TableCells - Add cells in the row
Add-TableEndRow - End the Row
Add-TableEnd - End the table
Get-Table - View the table in host or browser
Add-HeadingText1 - Add the largest heading
Add-HeadingText2 - Add the 2nd largest heading
Add-HeadingText3 - Add the 3rd largest heading
Add-HeadingText4 - Add the 4th largest heading
Add-HeadingText5 - Add the 5th largest heading
Add-HeadingText6 - Add the 6th largest heading
Add-Text - Add a text with appropriate font setting and alignment
Add-TimeStamp - Add timestamps in multiple formats
Add-LineBreak - Add one or multiple line breaks
Add-ListStart - Start a list
Add-ListItem - Add list items
Add-ListEnd - End a list
Add-ScrollableAreaStart - Start an area with a specific width. If the content is wider, scrollbar would appear.
Add-ScrollableAreaEnd - Ends the scrollable area.

About

This is a PowerShell script module for creating an HTML report with CSS. The idea is to build on this, so that multiple PowerShell scripts can use this common repository for creating elaborate HTML reports that contains Tables with uniform colors and other details.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors