Skip to content

About

Making HTML reports with charts and tables, from templates, in PowerShell

Resources

Stars

29 stars

Watchers

7 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HtmlReport

Making HTML reports with charts and tables, from templates, in PowerShell

Still in progress, but here's an example of a report:

$topVM = ps | Sort PrivateMemorySize -Descending |
              Select -First 10 | 
              ForEach { ,@(($_.ProcessName + " " + $_.Id), $_.PrivateMemorySize) }

$topCPU = ps | Sort CPU -Descending | 
               Select -First 10 | 
               ForEach { ,@(($_.ProcessName + " " + $_.Id), $_.CPU) }

New-Report -Title "Piggy Processes" -Input {
    New-Chart Bar "Top VM Users" -input $topVm
    New-Chart Column "Top CPU Overall" -input $topCPU
    ps | Select ProcessName, Id, CPU, WorkingSet, *MemorySize | New-Table "All Processes"
} > Report.html

Report Output

About

Making HTML reports with charts and tables, from templates, in PowerShell

Resources

Stars

29 stars

Watchers

7 watching

Forks

Releases

Packages

Contributors

Languages