Skip to content

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

License

Notifications You must be signed in to change notification settings

x86Since8088/HtmlReport

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 78.2%
  • HTML 21.8%